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