depth buffer

This commit is contained in:
2019-07-27 00:13:20 +02:00
parent 96afb5a14b
commit 48418b88cb
4 changed files with 73 additions and 43 deletions

View File

@@ -2,6 +2,12 @@
layout(location = 0) in vec3 position;
layout(push_constant) uniform LinePushConstants {
mat4 model;
mat4 view;
mat4 projection;
} push;
void main() {
gl_Position = vec4(position, 1.0);
gl_Position = push.projection * push.view * push.model * vec4(position, 1.0);
}