aboutsummaryrefslogtreecommitdiff
path: root/shaders/sand_vertex.vert
blob: f254dbc4a898d41c6fdc6de34ea181aa9c1ca419 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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);
}