mirror of
https://github.com/bevyengine/bevy
synced 2024-12-22 11:03:06 +00:00
cd8025d0a7
Fixes #1706 @JeanMertz already solved it. I just ran all examples and tests.
16 lines
339 B
GLSL
16 lines
339 B
GLSL
#version 450
|
|
|
|
layout(location = 0) in vec3 Vertex_Position;
|
|
|
|
layout(set = 0, binding = 0) uniform CameraViewProj {
|
|
mat4 ViewProj;
|
|
};
|
|
|
|
layout(set = 1, binding = 0) uniform Transform {
|
|
mat4 Model;
|
|
};
|
|
|
|
void main() {
|
|
vec3 v_Position = (Model * vec4(Vertex_Position, 1.0)).xyz;
|
|
gl_Position = ViewProj * vec4(v_Position, 1.0);
|
|
}
|