fs.chunk 310 B

1234567891011121314
  1. in highp float v_dist;
  2. layout(location = 0) out vec4 fragColorX;
  3. void main () {
  4. // better performance than SurfacesFragmentModifyBaseColorAndTransparency
  5. #ifdef CC_SURFACES_FRAGMENT_ALPHA_CLIP_ONLY
  6. SurfacesFragmentAlphaClipOnly();
  7. #endif
  8. if(v_dist < 0.0)
  9. discard;
  10. fragColorX = cc_shadowColor;
  11. }