12 lines
224 B
GLSL
12 lines
224 B
GLSL
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"
|