diff options
Diffstat (limited to 'examples/hellooffscreen_opengl/shader_offscreen.vert')
-rw-r--r-- | examples/hellooffscreen_opengl/shader_offscreen.vert | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/examples/hellooffscreen_opengl/shader_offscreen.vert b/examples/hellooffscreen_opengl/shader_offscreen.vert new file mode 100644 index 0000000..2dc9fe1 --- /dev/null +++ b/examples/hellooffscreen_opengl/shader_offscreen.vert @@ -0,0 +1,13 @@ +attribute vec4 position; +attribute vec4 color; + +varying vec4 vColor; + +uniform mat4 projection; +uniform mat4 modelview; + +void main() +{ + vColor = color; + gl_Position = projection * modelview * position; +} |