Ignore:
Timestamp:
Feb 17, 2011, 7:06:26 PM (9 years ago)
Author:
sam
Message:

Clean up stuff in the shader crap.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/video.cpp

    r656 r657  
    3030
    3131#if SHADER_CRAP
    32 #   define ATTRIB_POSITION 42 /* arbitrary id */
    3332    GLuint prog, sh1, sh2;
    3433    GLint uni_m1, uni_m2, uni_m3;
     
    5150    "void main()\n"
    5251    "{\n"
    53     "    //gl_Position = projection_matrix * view_matrix * model_matrix * vec4(in_Position, 1.0f);\n"
    54     "    gl_Position = projection_matrix * view_matrix * model_matrix * vec4(in_Position, 1.0f);\n"
     52    "    gl_Position = projection_matrix * view_matrix *"
     53    "                  model_matrix * vec4(in_Position, 1.0f);\n"
    5554    "    gl_TexCoord[0] = vec4(in_TexCoord, 0.0, 0.0);\n"
    5655    "    pass_Color = in_Color;\n"
     
    108107    glAttachShader(prog, sh2);
    109108
    110     //glBindAttribLocation(prog, ATTRIB_POSITION, "position");
    111109    glBindAttribLocation(prog, 0, "in_Position");
    112110    glBindAttribLocation(prog, 1, "in_Color");
Note: See TracChangeset for help on using the changeset viewer.