#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); }