skybox.v.glsl (194B)
1 #include profile 2 3 in vec3 position; 4 out vec3 tex_coords; 5 6 uniform mat4 mvp; 7 8 void main() { 9 tex_coords = position; 10 vec4 pos = mvp * vec4(position.xyz, 1.0); 11 gl_Position = pos.xyww; 12 }
polyadventA game engine from scratch in C | |
git clone git://jb55.com/polyadvent | |
Log | Files | Refs | README |