# HG changeset patch # User John Tsiombikas # Date 1315373156 -10800 # Node ID 698cbf1a1b978c41819fcdb6a873c5d09dcc37cf # Parent f72f96c9397281ea43ec78359ec2c6558fdbd0b5 foo diff -r f72f96c93972 -r 698cbf1a1b97 sdr/test.v.glsl --- a/sdr/test.v.glsl Wed Sep 07 08:22:18 2011 +0300 +++ b/sdr/test.v.glsl Wed Sep 07 08:25:56 2011 +0300 @@ -1,4 +1,4 @@ -uniform mat4 matrix_modelview, matrix_projection; +//uniform mat4 matrix_modelview, matrix_projection; attribute vec4 attr_vertex, attr_color; @@ -6,7 +6,7 @@ void main() { - mat4 mvp = matrix_projection * matrix_modelview; - gl_Position = mvp * attr_vertex; + //mat4 mvp = matrix_projection * matrix_modelview; + gl_Position = /*mvp */ attr_vertex; var_color = attr_color; } diff -r f72f96c93972 -r 698cbf1a1b97 src/istereo.c --- a/src/istereo.c Wed Sep 07 08:22:18 2011 +0300 +++ b/src/istereo.c Wed Sep 07 08:25:56 2011 +0300 @@ -35,9 +35,9 @@ bind_program(prog); - gl_matrix_mode(GL_MODELVIEW); + /*gl_matrix_mode(GL_MODELVIEW); gl_load_identity(); - gl_translatef(0, 0, -8); + gl_translatef(0, 0, -8);*/ dbg_draw(); @@ -106,10 +106,11 @@ glUseProgram(prog); - gl_apply_xform(prog); + /*gl_apply_xform(prog);*/ - vloc = 0;//glGetAttribLocation(prog, "attr_vertex"); - cloc = 1;//glGetAttribLocation(prog, "attr_color"); + + vloc = 0;/*glGetAttribLocation(prog, "attr_vertex");*/ + cloc = 1;/*glGetAttribLocation(prog, "attr_color");*/ assert(vloc >= 0 && cloc >= 0); glVertexAttribPointer(vloc, 2, GL_FLOAT, 0, 0, squareVertices);