kwin/shaders/1.40/scene-generic-vertex.glsl
Fredrik Höglund 54b63a85a6 kwin: Add GLSL 1.40 versions of the scene shaders
Adjust ShaderManager to load the 1.40 versions when GLSL 1.40
is supported.
2013-05-08 18:33:03 +02:00

17 lines
345 B
GLSL

#version 140
uniform mat4 projection;
uniform mat4 modelview;
uniform mat4 screenTransformation;
uniform mat4 windowTransformation;
in vec4 vertex;
in vec2 texCoord;
out vec2 varyingTexCoords;
void main()
{
varyingTexCoords = texCoord;
gl_Position = projection * (modelview * screenTransformation * windowTransformation) * vertex;
}