istereo2
annotate sdr/test.v.glsl @ 2:81d35769f546
added the tunnel effect source
author | John Tsiombikas <nuclear@member.fsf.org> |
---|---|
date | Sat, 19 Sep 2015 05:51:51 +0300 |
parents | |
children |
rev | line source |
---|---|
nuclear@2 | 1 uniform mat4 matrix_modelview, matrix_projection, matrix_texture; |
nuclear@2 | 2 |
nuclear@2 | 3 attribute vec4 attr_vertex, attr_color; |
nuclear@2 | 4 attribute vec2 attr_texcoord; |
nuclear@2 | 5 |
nuclear@2 | 6 varying vec3 vpos; |
nuclear@2 | 7 varying vec4 var_color; |
nuclear@2 | 8 varying vec2 var_texcoord; |
nuclear@2 | 9 |
nuclear@2 | 10 void main() |
nuclear@2 | 11 { |
nuclear@2 | 12 mat4 mvp = matrix_projection * matrix_modelview; |
nuclear@2 | 13 gl_Position = mvp * attr_vertex; |
nuclear@2 | 14 vpos = (matrix_modelview * attr_vertex).xyz; |
nuclear@2 | 15 var_color = attr_color; |
nuclear@2 | 16 var_texcoord = (matrix_texture * vec4(attr_texcoord, 0.0, 1.0)).xy; |
nuclear@2 | 17 } |