istereo
annotate sdr/test.v.glsl @ 20:21d58290e634
forgot the cam files
author | John Tsiombikas <nuclear@mutantstargoat.com> |
---|---|
date | Wed, 07 Sep 2011 10:15:35 +0300 |
parents | fe1cb1c567cc |
children | 889dade25667 |
rev | line source |
---|---|
nuclear@13 | 1 uniform mat4 matrix_modelview, matrix_projection; |
nuclear@2 | 2 |
nuclear@2 | 3 attribute vec4 attr_vertex, attr_color; |
nuclear@14 | 4 attribute vec2 attr_texcoord; |
nuclear@2 | 5 |
nuclear@2 | 6 varying vec4 var_color; |
nuclear@14 | 7 varying vec2 var_texcoord; |
nuclear@2 | 8 |
nuclear@2 | 9 void main() |
nuclear@2 | 10 { |
nuclear@13 | 11 mat4 mvp = matrix_projection * matrix_modelview; |
nuclear@13 | 12 gl_Position = mvp * attr_vertex; |
nuclear@2 | 13 var_color = attr_color; |
nuclear@14 | 14 var_texcoord = attr_texcoord; |
nuclear@2 | 15 } |