18 lines
334 B
GLSL
18 lines
334 B
GLSL
layout(location = 0)in vec2 inPosition;
|
|
|
|
#ifdef TEXTURABLE
|
|
layout(location = 2)in vec2 inTexCoord;
|
|
|
|
out vec2 texCoord;
|
|
#endif
|
|
|
|
uniform mat4 transformMatrix;
|
|
uniform mat4 orthoMatrix;
|
|
|
|
void main(void) {
|
|
#ifdef TEXTURABLE
|
|
texCoord = inTexCoord;
|
|
#endif
|
|
gl_Position = orthoMatrix * transformMatrix * vec4(inPosition, 0.0, 1.0);
|
|
}
|