KlassischeKeplerKriege/data/shader/sphere.vert

12 lines
198 B
GLSL
Raw Normal View History

#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;
2016-09-29 10:28:35 +00:00
}