mirror of https://github.com/mosra/magnum.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
620 B
25 lines
620 B
#ifndef NEW_GLSL |
|
#define in attribute |
|
#define out varying |
|
#endif |
|
|
|
#ifdef EXPLICIT_UNIFORM_LOCATION |
|
layout(location = 0) uniform mat3 transformationProjectionMatrix; |
|
#else |
|
uniform highp mat3 transformationProjectionMatrix; |
|
#endif |
|
|
|
#ifdef EXPLICIT_ATTRIB_LOCATION |
|
layout(location = 0) in highp vec3 position; |
|
layout(location = 1) in mediump vec2 textureCoordinates; |
|
#else |
|
in highp vec3 position; |
|
in mediump vec2 textureCoordinates; |
|
#endif |
|
|
|
out vec2 fragmentTextureCoordinates; |
|
|
|
void main() { |
|
gl_Position.xywz = vec4(transformationProjectionMatrix*position, 0.0); |
|
fragmentTextureCoordinates = textureCoordinates; |
|
}
|
|
|