16 lines
254 B
GLSL
16 lines
254 B
GLSL
|
#version 330
|
||
|
layout(location = 0) in vec3 aPosition;
|
||
|
|
||
|
uniform mat4 uModel;
|
||
|
uniform mat4 uView;
|
||
|
uniform mat4 uProjection;
|
||
|
|
||
|
out vec3 vPosition;
|
||
|
|
||
|
void main()
|
||
|
{
|
||
|
vPosition = aPosition;
|
||
|
|
||
|
gl_Position = uProjection * uView * uModel * vec4(aPosition, 1.0);
|
||
|
}
|