comparison default.v.glsl @ 488:32f053ad9b02 opengl

Basic OpenGL rendering is working
author Mike Pavone <pavone@retrodev.com>
date Sun, 27 Oct 2013 01:29:50 -0700
parents
children
comparison
equal deleted inserted replaced
487:c08a4efeee7f 488:32f053ad9b02
1 #version 110
2
3 attribute vec2 pos;
4 varying vec2 texcoord;
5
6 void main()
7 {
8 gl_Position = vec4(pos, 0.0, 1.0);
9 texcoord = pos * vec2(320.0/1024.0, 240.0/-512.0) + vec2(320.0/1024.0, 240.0/512.0);
10 }