Ignore:
Timestamp:
Jun 9, 2011, 1:55:52 AM (9 years ago)
Author:
sam
Message:

debug: more debug quad tests, 1.20 shaders.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/video.cpp

    r760 r771  
    3535mat4 proj_matrix, view_matrix, model_matrix;
    3636
     37#define OLD
     38
    3739static char const *vertexshader =
     40#if !defined OLD
    3841    "#version 130\n"
     42#endif
    3943    "\n"
    4044#if defined HAVE_GLES_2X
     
    4246    "attribute vec2 in_TexCoord;\n"
    4347    "varying vec2 pass_TexCoord;\n"
    44 #else
     48#elif !defined OLD
    4549    "in vec3 in_Position;\n"
    4650    "in vec2 in_TexCoord;\n"
     
    5458    "void main()\n"
    5559    "{\n"
     60#if defined OLD
     61    "    vec3 in_Position = gl_Vertex.xyz;\n"
     62    "    vec2 in_TexCoord = gl_MultiTexCoord0.xy;\n"
     63#endif
    5664    "    gl_Position = proj_matrix * view_matrix * model_matrix"
    5765    "                * vec4(in_Position, 1.0);\n"
     
    6573
    6674static char const *fragmentshader =
     75#if !defined OLD
    6776    "#version 130\n"
     77#endif
    6878    "\n"
    6979    "uniform sampler2D in_Texture;\n"
Note: See TracChangeset for help on using the changeset viewer.