Project

General

Profile

« Previous | Next » 

Revision 51a3cbab

Added by Leszek Koltunski about 6 years ago

SSBO: handle the fact that we might run out of space in our SSBO if we keep creating new Surfaces.

View differences:

src/main/res/raw/main_fragment_shader.glsl
73 73
    }
74 74
#endif
75 75

  
76
  if( color.a < 1.0 ) ssbocount[u_currentIndex]++;
76
  if( color.a < 1.0 && color.a > 0.0 ) ssbocount[u_currentIndex]++;
77 77

  
78 78
  FRAG_COLOR = vec4(color.rgb * (1.0 + 7.0*v_Normal.z) * 0.125, color.a);
79 79
  }

Also available in: Unified diff