Ignore:
Timestamp:
Mar 14, 2011, 2:40:30 AM (9 years ago)
Author:
sam
Message:

video: make the dithering shader work with GLES2.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/video.cpp

    r741 r742  
    8282    "{\n"
    8383#if defined HAVE_GLES_2X
    84     "    gl_FragColor = texture2D(in_Texture, pass_TexCoord);\n"
    85     //"    gl_FragColor = vec4(0.5, 1.0, 0.0, 0.5);\n"
    86     //"    gl_FragColor = vec4(pass_TexCoord * 4.0, 0.0, 0.25);\n"
     84    "    vec4 col = texture2D(in_Texture, pass_TexCoord);\n"
     85    //"    vec4 col = vec4(0.5, 1.0, 0.0, 0.5);\n"
     86    //"    vec4 col = vec4(pass_TexCoord * 4.0, 0.0, 0.25);\n"
    8787#else
    8888    "    vec4 col = texture2D(in_Texture, vec2(gl_TexCoord[0]));\n"
    89 #if 0
     89#endif
     90#if 1
    9091    "    float mul = 2.0;\n"
    9192    "    float dx1 = mod(gl_FragCoord.x, 2.0);\n"
     
    110111#endif
    111112    "    gl_FragColor = col;\n"
    112 #endif
    113113    "}\n";
    114114#endif
Note: See TracChangeset for help on using the changeset viewer.