fixed!!
This commit is contained in:
@@ -1,10 +1,11 @@
|
||||
#version 450
|
||||
#extension GL_ARB_separate_shader_objects : enable
|
||||
|
||||
layout(location = 0) in vec3 position;
|
||||
|
||||
layout(location = 0) out vec3 pos;
|
||||
|
||||
layout(push_constant) uniform push_constants {
|
||||
layout(push_constant) uniform PushConstants {
|
||||
float time;
|
||||
mat4 model;
|
||||
mat4 view;
|
||||
@@ -12,6 +13,6 @@ layout(push_constant) uniform push_constants {
|
||||
} push;
|
||||
|
||||
void main() {
|
||||
gl_Position = push.projection * push.view * push.model * vec4(position + vec3(sin(push.time / 10.), 0., 0.), 1.0);
|
||||
gl_Position = push.projection * push.view * push.model * vec4(position, 1.0);
|
||||
pos = gl_Position.xyz;
|
||||
}
|
||||
Reference in New Issue
Block a user