Add third coordinate

This commit is contained in:
Jiga228
2025-10-23 18:23:23 +07:00
parent 4bec5afd72
commit e52df7ef12
3 changed files with 18 additions and 9 deletions
+2 -2
View File
@@ -6,13 +6,13 @@ layout(binding = 0) uniform UniformBufferObject {
mat4 proj;
} ubo;
layout(location = 0) in vec2 inPosition;
layout(location = 0) in vec3 inPosition;
layout(location = 1) in vec3 inColor;
layout(location = 0) out vec3 fragColor;
void main()
{
gl_Position = ubo.proj * ubo.view * ubo.model * vec4(inPosition, 0.0, 1.0);
gl_Position = ubo.proj * ubo.view * ubo.model * vec4(inPosition, 1.0);
fragColor = inColor;
}