This commit is contained in:
2019-07-25 16:38:42 +02:00
parent 007e158410
commit 767efab3d4
4 changed files with 111 additions and 145 deletions

View File

@@ -6,9 +6,12 @@ layout(location = 0) out vec3 pos;
layout(push_constant) uniform push_constants {
float time;
mat4 model;
mat4 view;
mat4 projection;
} push;
void main() {
gl_Position = vec4(position + vec3(sin(push.time / 10.), 0., 0.), 1.0);
gl_Position = push.projection * push.view * push.model * vec4(position + vec3(sin(push.time / 10.), 0., 0.), 1.0);
pos = gl_Position.xyz;
}