kwin/shaders/1.40/scene-color-vertex.glsl

14 lines
210 B
Text
Raw Normal View History

#version 140
uniform mat4 projection;
// offset of the window/texture to be rendered
uniform vec2 offset;
in vec4 vertex;
void main()
{
gl_Position = projection * vec4(vertex.xy + offset, vertex.zw);
}