Huge changes for 3d
This commit is contained in:
@@ -1,9 +1,10 @@
|
||||
#version 450
|
||||
|
||||
layout (location = 0) in vec2 position;
|
||||
layout (location = 1) in vec3 color;
|
||||
// Per vertex; locations match Mesh::getAttributeDescriptions().
|
||||
layout (location = 0) in vec3 position;
|
||||
layout (location = 3) in vec4 color;
|
||||
|
||||
layout (location = 0) out vec3 fragColor;
|
||||
layout (location = 0) out vec4 fragColor;
|
||||
|
||||
layout (push_constant) uniform Push {
|
||||
mat4 transform;
|
||||
@@ -11,6 +12,6 @@ layout (push_constant) uniform Push {
|
||||
} push;
|
||||
|
||||
void main() {
|
||||
gl_Position = vec4(push.transform * vec4(position, 0.0, 1.0));
|
||||
gl_Position = push.transform * vec4(position, 1.0);
|
||||
fragColor = color;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user