1
0
Fork 0
mirror of https://github.com/quantum5/punyverse.git synced 2025-04-24 21:21:59 -04:00
punyverse/punyverse/shaders/ring.vertex.glsl
Quantum d41fcb7d7f Convert rings to shaders.
Also add planet shadows onto rings.
2018-08-29 02:20:37 -04:00

17 lines
291 B
GLSL

#version 130
in vec2 a_position;
in float a_u;
out vec3 v_position;
out float v_u;
uniform mat4 u_mvpMatrix;
uniform mat4 u_modelMatrix;
void main() {
gl_Position = u_mvpMatrix * vec4(a_position, 0, 1);
v_position = (u_modelMatrix * vec4(a_position, 0, 1)).xyz;
v_u = a_u;
}