diff options
Diffstat (limited to 'shaders/yofrankie/30.vert')
-rw-r--r-- | shaders/yofrankie/30.vert | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/shaders/yofrankie/30.vert b/shaders/yofrankie/30.vert new file mode 100644 index 0000000..bb12708 --- /dev/null +++ b/shaders/yofrankie/30.vert @@ -0,0 +1,22 @@ +attribute vec2 att0; +varying vec2 var0; +attribute vec3 att1; +varying vec3 var1; + + +varying vec3 varposition; +varying vec3 varnormal; + +void main() +{ + vec4 co = gl_ModelViewMatrix * gl_Vertex; + + varposition = co.xyz; + varnormal = gl_NormalMatrix * gl_Normal; + gl_Position = gl_ProjectionMatrix * co; + + var0 = att0; + var1 = gl_NormalMatrix * att1; +} + + |