Project

General

Profile

« Previous | Next » 

Revision cee0369a

Added by Leszek Koltunski about 6 years ago

Order Independent Transparency: debugging

View differences:

src/main/res/raw/blit_depth_render_fragment_shader.glsl
74 74
    u_Records[index] = 0u;
75 75
    vec4 color = convert(u_Records[ptr]);
76 76

  
77
         if( (4*int(v_Pixel.x) > u_Size.x) && color.r==1.0 ) FRAG_COLOR = color;
78
    else if( (4*int(v_Pixel.x) <=u_Size.x) && color.g==1.0 ) FRAG_COLOR = color;
77
         if( (2*int(v_Pixel.x) > u_Size.x) && color.r==1.0 ) FRAG_COLOR = color;
78
    else if( (2*int(v_Pixel.x) <=u_Size.x) && color.g==1.0 ) FRAG_COLOR = color;
79 79
    else FRAG_COLOR = vec4(0.0,0.0,1.0,1.0);
80 80
    //FRAG_COLOR = convert(u_Records[index]);
81 81
    //u_Records[index] = 0u;

Also available in: Unified diff