Project

General

Profile

« Previous | Next » 

Revision 78e89fb5

Added by Leszek Koltunski about 6 years ago

Properly recreate the Atomic and LinkedList buffers onPause.
We have to discard all alpha==0.0 pixels during OIT Pass1.

View differences:

src/main/res/raw/blit_depth_render_fragment_shader.glsl
64 64
    {
65 65
    u_Records[index] = 0u;
66 66

  
67
    vec4 color= vec4(0.0,0.0,1.0,1.0);//convert(u_Records[curr+2u]);
67
    vec4 color= convert(u_Records[curr+2u]);
68 68
    curr = u_Records[curr];
69 69

  
70 70
    while (curr > 0u)
71 71
      {
72
      color= vec4(0.0,0.0,0.0,1.0);//blend( color, convert(u_Records[curr+2u]) );  // keep walking the linked list
72
      color= blend( color, convert(u_Records[curr+2u]) );  // keep walking the linked list
73 73
      curr = u_Records[curr];                              // and blending the colors in
74 74
      }
75 75

  

Also available in: Unified diff