diff options
author | jvech <jmvalenciae@unal.edu.co> | 2022-08-29 09:12:18 -0500 |
---|---|---|
committer | jvech <jmvalenciae@unal.edu.co> | 2022-08-29 09:12:18 -0500 |
commit | d7bd9a3dbd3486a4b0615dc9f30a890ff6d04ec6 (patch) | |
tree | 4d4e2a4770fae453a6ac541931216d5e353102b9 /shaders/vertex.vsh | |
parent | 3b24a477cf566296aa758058aaca96cf0c117141 (diff) |
feat: 3D support added
Diffstat (limited to 'shaders/vertex.vsh')
-rw-r--r-- | shaders/vertex.vsh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/shaders/vertex.vsh b/shaders/vertex.vsh index 220041d..987dc3b 100644 --- a/shaders/vertex.vsh +++ b/shaders/vertex.vsh @@ -2,12 +2,12 @@ layout (location = 0) in vec3 aPos; layout (location = 1) in vec3 aColor; -uniform mat4 trans; +uniform mat4 model, view, proj; out vec3 vertexColor; void main() { - gl_Position = trans * vec4(aPos, 1.0f); + gl_Position = proj * view * model * vec4(aPos, 1.0f); vertexColor = aColor; } |