qtk/resources/shaders/vertex/texture-cubemap.vert

16 lines
254 B
GLSL
Raw Permalink Normal View History

2021-09-03 16:56:57 +00:00
#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);
}