Ignore:
Timestamp:
Feb 20, 2013, 12:51:38 PM (6 years ago)
Author:
sam
Message:

gpu: fix GLSL ES syntax errors in various shaders.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/easymesh/shinydebugnormal.lolfx

    r2370 r2458  
    4848{
    4949    vec3 real_color = vec3(0.0, 0.0, 0.0);
    50     real_color += abs(pass_TNormal.x) * ((pass_TNormal.x < .0f)?(vec3(0.0, 1.0, 1.0)):(vec3(1.0, 0.0, 0.0)));
    51     real_color += abs(pass_TNormal.y) * ((pass_TNormal.y < .0f)?(vec3(1.0, 0.0, 1.0)):(vec3(0.0, 1.0, 0.0)));
    52     real_color += abs(pass_TNormal.z) * ((pass_TNormal.z < .0f)?(vec3(1.0, 1.0, 0.0)):(vec3(0.0, 0.0, 1.0)));
     50    real_color += abs(pass_TNormal.x) * ((pass_TNormal.x < 0.0)?(vec3(0.0, 1.0, 1.0)):(vec3(1.0, 0.0, 0.0)));
     51    real_color += abs(pass_TNormal.y) * ((pass_TNormal.y < 0.0)?(vec3(1.0, 0.0, 1.0)):(vec3(0.0, 1.0, 0.0)));
     52    real_color += abs(pass_TNormal.z) * ((pass_TNormal.z < 0.0)?(vec3(1.0, 1.0, 0.0)):(vec3(0.0, 0.0, 1.0)));
    5353    gl_FragColor = vec4(real_color, pass_Color.w);
    5454}
Note: See TracChangeset for help on using the changeset viewer.