diff options
Diffstat (limited to 'shader/vertex.glsl')
| -rw-r--r-- | shader/vertex.glsl | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/shader/vertex.glsl b/shader/vertex.glsl index 02a1954..f2b0634 100644 --- a/shader/vertex.glsl +++ b/shader/vertex.glsl @@ -1,6 +1,6 @@ #version 400 core -layout (location = 0) in vec3 v_position; +layout (location = 0) in vec4 v_position; uniform mat4 u_model; uniform mat4 u_view; @@ -8,5 +8,5 @@ uniform mat4 u_proj; void main() { - gl_Position = u_proj * u_view * u_model * vec4(v_position, 1.0); + gl_Position = u_proj * u_view * u_model * v_position; } |
