istereo

annotate sdr/test.v.glsl @ 22:889dade25667

added fog
author John Tsiombikas <nuclear@mutantstargoat.com>
date Wed, 07 Sep 2011 10:56:18 +0300
parents b39d8607f4bb
children 70309d71c899
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@22 6 varying vec3 vpos;
nuclear@2 7 varying vec4 var_color;
nuclear@14 8 varying vec2 var_texcoord;
nuclear@2 9
nuclear@2 10 void main()
nuclear@2 11 {
nuclear@13 12 mat4 mvp = matrix_projection * matrix_modelview;
nuclear@13 13 gl_Position = mvp * attr_vertex;
nuclear@22 14 vpos = (matrix_modelview * attr_vertex).xyz;
nuclear@2 15 var_color = attr_color;
nuclear@14 16 var_texcoord = attr_texcoord;
nuclear@2 17 }