KlassischeKeplerKriege/game/renderer_polygon_3d/gameobjects.vert

13 lines
224 B
GLSL
Raw Normal View History

R"raw_string(
#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;
}
)raw_string"