10 Commits

Author SHA1 Message Date
Grant Sanderson
e1816c2ac5 Merge pull request #2230 from 3b1b/video-work
Misc. bug fixes
2024-10-23 17:44:08 -05:00
Grant Sanderson
199395b6e3 Fix negative winding issue
https://github.com/3b1b/manim/issues/2146
2024-10-23 17:40:31 -05:00
Grant Sanderson
837bb14c03 Merge branch 'master' of github.com:3b1b/manim into video-work 2024-10-23 11:41:29 -05:00
Grant Sanderson
eca370f5ce Merge pull request #2229 from 3b1b:add-dependency
Add mapbox-earcut dependency
2024-10-23 11:41:06 -05:00
Grant Sanderson
5505fc1d54 Add mapbox-earcut dependency 2024-10-23 11:40:14 -05:00
Grant Sanderson
0c7c9dee93 Merge branch 'master' of github.com:3b1b/manim into video-work 2024-10-17 12:43:57 -05:00
Grant Sanderson
1a65498f97 Merge pull request #2218 from 3b1b/3b1b-patch-1
Update setup.cfg
2024-10-17 12:43:28 -05:00
Grant Sanderson
a34c4482f6 Update setup.cfg 2024-10-17 10:43:18 -07:00
Grant Sanderson
e3e87f6110 Update Pango requirement 2024-10-17 12:32:11 -05:00
Grant Sanderson
aaa28a2712 Discard transparent parts of textured surfaces 2024-10-17 12:31:53 -05:00
4 changed files with 12 additions and 4 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

View File

@@ -1,6 +1,6 @@
[metadata]
name = manimgl
version = 1.6.1
version = 1.7.0
author = Grant Sanderson
author_email= grant@3blue1brown.com
description = Animation engine for explanatory math videos
@@ -30,10 +30,11 @@ packages = find:
include_package_data = True
install_requires =
colour
ipython
ipython>=8.18.0
isosurfaces
manimpango>=0.4.0.post0,<0.5.0
fontTools
mapbox-earcut
manimpango>=0.6.0
matplotlib
moderngl
moderngl_window
@@ -51,6 +52,7 @@ install_requires =
svgelements>=1.8.1
sympy
tqdm
typing-extensions; python_version < "3.11"
validators
[options.entry_points]