~ubuntu-branches/ubuntu/utopic/kde-workspace/utopic-proposed

« back to all changes in this revision

Viewing changes to kwin/scene-color-vertex.glsl

  • Committer: Bazaar Package Importer
  • Author(s): Michał Zając
  • Date: 2011-07-09 08:31:15 UTC
  • Revision ID: james.westby@ubuntu.com-20110709083115-ohyxn6z93mily9fc
Tags: upstream-4.6.90
Import upstream version 4.6.90

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
uniform mat4 projection;
 
2
// offset of the window/texture to be rendered
 
3
uniform vec2 offset;
 
4
 
 
5
// passed in vertex - only x and y are used
 
6
attribute vec4 vertex;
 
7
 
 
8
void main() {
 
9
    gl_Position = projection*vec4(vertex.xy + offset, vertex.zw);
 
10
}