Ignore:
Timestamp:
Feb 17, 2011, 1:05:58 AM (9 years ago)
Author:
sam
Message:

More shader crap. We can now display a coloured quad. Still disabled.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/video.cpp

    r653 r654  
    4444    "in vec3 in_Color;\n"
    4545    "out vec3 pass_Color;\n"
    46     "//attribute vec4 position;\n"
    4746    "uniform mat4 projection_matrix;\n"
    4847    "uniform mat4 view_matrix;\n"
     
    5150    "void main()\n"
    5251    "{\n"
    53     "    gl_Position = projection_matrix * view_matrix * model_matrix * vec4(in_Position, 1.0f);\n"
     52    "    //gl_Position = projection_matrix * view_matrix * model_matrix * vec4(in_Position, 1.0f);\n"
     53    "    gl_Position = vec4(in_Position, 1.0f);\n"
    5454    "    pass_Color = in_Color;\n"
    5555    "}\n";
     
    6363    "void main()\n"
    6464    "{\n"
    65     "    gl_FragColor = pass_Color;\n"
     65    "    gl_FragColor = vec4(pass_Color, 1.0);\n"
    6666    "}\n";
    6767#endif
Note: See TracChangeset for help on using the changeset viewer.