mirror of
https://github.com/3b1b/manim.git
synced 2025-11-14 22:57:44 +00:00
parent
837bb14c03
commit
199395b6e3
1 changed files with 5 additions and 0 deletions
|
|
@ -446,6 +446,11 @@ class VShaderWrapper(ShaderWrapper):
|
|||
color = texture(Texture, uv);
|
||||
if(color.a == 0) discard;
|
||||
|
||||
if(color.a < 0){
|
||||
color.a = -color.a / (1.0 - color.a);
|
||||
color.rgb *= (color.a - 1);
|
||||
}
|
||||
|
||||
// Counteract scaling in fill frag
|
||||
color *= 1.06;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue