2010-12-12 12:40:39 +00:00
|
|
|
uniform mat4 projection;
|
|
|
|
// offset of the window/texture to be rendered
|
|
|
|
uniform vec2 offset;
|
2010-12-05 08:13:46 +00:00
|
|
|
|
|
|
|
// passed in vertex - only x and y are used
|
|
|
|
attribute vec4 vertex;
|
|
|
|
|
|
|
|
void main() {
|
2011-03-06 08:10:21 +00:00
|
|
|
gl_Position = projection*vec4(vertex.xy + offset, vertex.zw);
|
2010-12-05 08:13:46 +00:00
|
|
|
}
|