KlassischeKeplerKriege/data/shader/sphere.vert
2016-09-29 12:28:35 +02:00

12 lines
No EOL
198 B
GLSL

#version 120
varying vec3 vertex;
uniform mat4 model;
void main()
{
//vec3 p = position + scale*gl_Vertex.xyz;
vec3 p = (model*gl_Vertex).xyz;
gl_Position = vec4(p, 1.0);
vertex = p.xyz;
}