diff options
Diffstat (limited to 'assets/shaders/vertex.vert')
| -rw-r--r-- | assets/shaders/vertex.vert | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/assets/shaders/vertex.vert b/assets/shaders/vertex.vert index 57fa219..8b2c133 100644 --- a/assets/shaders/vertex.vert +++ b/assets/shaders/vertex.vert @@ -1,9 +1,9 @@ #version 450 layout(binding = 0) uniform UniformBufferObject { - mat4 model; - mat4 view; - mat4 proj; + mat4 model; + mat4 view; + mat4 proj; } ubo; // vertex @@ -20,12 +20,12 @@ layout(location = 0) out vec4 fragColor; layout(location = 1) out vec3 fragTexCoord; void main() { - gl_Position = - ubo.proj * - ubo.view * - ubo.model * - instPosRotScale * - vec4(inPosition, 1.0); - fragColor = vec4(0.0, 0.0, 0.0, 0.0); - fragTexCoord = vec3(inUV, 0); + gl_Position = + ubo.proj * + ubo.view * + ubo.model * + instPosRotScale * + vec4(inPosition, 1.0); + fragColor = vec4(0.0, 0.0, 0.0, 0.0); + fragTexCoord = vec3(inUV, 0); } |
