Merge pull request #2230 from 3b1b/video-work

Misc. bug fixes
This commit is contained in:
Grant Sanderson 2024-10-23 17:44:08 -05:00 committed by GitHub
commit e1816c2ac5
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 7 additions and 1 deletions

View file

@ -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;

View file

@ -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,

View file

@ -2,7 +2,7 @@ colour
ipython>=8.18.0
isosurfaces
fontTools
manimpango>=0.4.0.post0,<0.5.0
manimpango>=0.6.0
mapbox-earcut
matplotlib
moderngl