Fix descriptor leak on resize
This commit is contained in:
parent
be03bf524f
commit
5d89216db5
17 changed files with 935 additions and 2 deletions
21
shaders/glsl/linerendering/line.vert
Normal file
21
shaders/glsl/linerendering/line.vert
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
#version 450
|
||||
|
||||
layout (location = 0) in vec3 inPos;
|
||||
|
||||
layout (binding = 0) uniform UBO
|
||||
{
|
||||
mat4 projection;
|
||||
mat4 modelview;
|
||||
vec4 lightPos;
|
||||
} ubo;
|
||||
|
||||
layout(push_constant) uniform PushConsts {
|
||||
vec3 objPos;
|
||||
} pushConsts;
|
||||
|
||||
void main()
|
||||
{
|
||||
vec3 locPos = vec3(ubo.modelview * vec4(inPos, 1.0));
|
||||
vec3 worldPos = vec3(ubo.modelview * vec4(inPos + pushConsts.objPos, 1.0));
|
||||
gl_Position = ubo.projection /* ubo.modelview */ * vec4(worldPos, 1.0);
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue