versustunez
9d5259767c
- fixed loading songs - cleanup utils - added some helper class - cleanup preparing of WEBGL2 - added 3D wave - added light-support - added configs - added gui-events for playing, shuffling and playlist
14 lines
253 B
GLSL
14 lines
253 B
GLSL
#version 300 es
|
|
|
|
in vec3 a_position;
|
|
uniform mat4 u_matrix;
|
|
uniform vec3 u_lightPos;
|
|
|
|
out vec4 pos;
|
|
out vec3 v_surfaceToLight;
|
|
|
|
void main() {
|
|
pos = u_matrix * vec4(a_position, 1);
|
|
gl_Position = pos;
|
|
v_surfaceToLight = u_lightPos - pos.xyz;
|
|
} |