3dphotoshoot
diff sdr/vertex.glsl @ 21:4ca4e3c5a754
port to C++ completed, shader programs now use the SdrProg class
author | John Tsiombikas <nuclear@member.fsf.org> |
---|---|
date | Thu, 11 Jun 2015 04:56:33 +0300 |
parents | |
children | d7fe157c402d |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/sdr/vertex.glsl Thu Jun 11 04:56:33 2015 +0300 1.3 @@ -0,0 +1,12 @@ 1.4 +attribute vec4 attr_vertex, attr_texcoord; 1.5 + 1.6 +uniform mat4 matrix_modelview, matrix_projection, matrix_texture; 1.7 + 1.8 +varying vec4 tex_coords; 1.9 + 1.10 +void main() 1.11 +{ 1.12 + mat4 mvp = matrix_projection * matrix_modelview; 1.13 + gl_Position = mvp * attr_vertex; 1.14 + tex_coords = matrix_texture * attr_texcoord; 1.15 +}