Browse Source

Discard transparent parts of textured surfaces

Grant Sanderson 5 days ago
parent
commit
aaa28a2712
1 changed files with 1 additions and 0 deletions
  1. 1 0
      manimlib/shaders/textured_surface/frag.glsl

+ 1 - 0
manimlib/shaders/textured_surface/frag.glsl

@@ -26,6 +26,7 @@ void main() {
         float alpha = smoothstep(-dark_shift, dark_shift, dp);
         color = mix(dark_color, color, alpha);
     }
+    if (color.a == 0) discard;
 
     frag_color = finalize_color(
         color,