mirror of
https://bitbucket.org/smil3y/kde-workspace.git
synced 2025-02-26 11:52:52 +00:00
17 lines
414 B
Text
17 lines
414 B
Text
![]() |
uniform mat4 projection;
|
||
|
// offset of the window/texture to be rendered
|
||
|
uniform vec2 offset;
|
||
|
|
||
|
// passed in vertex - only x and y are used
|
||
|
attribute vec4 vertex;
|
||
|
// passed in texCoords - to be forwarded
|
||
|
attribute vec2 texCoord;
|
||
|
|
||
|
// texCoords passed to fragment shader
|
||
|
varying vec2 varyingTexCoords;
|
||
|
|
||
|
void main() {
|
||
|
varyingTexCoords = texCoord;
|
||
|
gl_Position = projection*vec4(vertex.xy + offset, vertex.zw);
|
||
|
}
|