diff options
author | dec05eba <dec05eba@protonmail.com> | 2020-02-15 01:36:41 +0100 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2021-11-18 15:22:10 +0100 |
commit | e4d073947d09634e95325ddaf8f1615f85e85901 (patch) | |
tree | 1bfa96dd7692f0d1c0029b3ba9a82e4ba719eb71 /shaders/sand_vertex.vert | |
parent | b366f3d0c573468ecd0b59da43dfcbc847334b19 (diff) |
Load texture in obj model loader.. broken
Diffstat (limited to 'shaders/sand_vertex.vert')
-rw-r--r-- | shaders/sand_vertex.vert | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/shaders/sand_vertex.vert b/shaders/sand_vertex.vert new file mode 100644 index 0000000..f254dbc --- /dev/null +++ b/shaders/sand_vertex.vert @@ -0,0 +1,15 @@ +#version 330 core + +in vec3 position; + +uniform float time; + +uniform mat4 proj; +uniform mat4 view; +uniform mat4 model; + +void main() { + vec3 pos = position; + pos.z = sin(pos.x + time) * cos(pos.y + time); + gl_Position = proj * view * model * vec4(pos, 1.0); +}
\ No newline at end of file |