Grant Sanderson
13fdc9629d
No need for the shortcuts into the manim_config
2024-12-11 09:58:51 -06:00
Grant Sanderson
4cc2e5ed17
Consolidate camera configuration
2024-12-10 11:39:13 -06:00
Grant Sanderson
0e83c9c0d9
Merge branch 'master' into video-work
2024-12-05 16:50:13 -06:00
Varniex
5d3f730824
Cleaning up some imports + Minor Bug fixed in VectorField ( #2253 )
...
* cleaning up imports
* sample_points -> sample_coords
2024-12-05 14:42:46 -08:00
Grant Sanderson
96a4a4b76f
Factor out configuration to be passed into a scene vs. that used to run a scene
2024-12-05 14:36:21 -06: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
f0bf50eb7f
Remove use of gl_VertexID
2024-09-28 09:54:28 -05:00
Grant Sanderson
e7c540f415
Move texture id tracking to ShaderWrapper
...
Rather than having a globally unique id for each texture, dynamically allocate new texure ids within each ShaderWrapper, so that there is no upper bound on how many textures can be used.
2024-09-06 11:07:38 -05:00
Grant Sanderson
f378d33d01
Use doubled fill canvas so antialiasing doesn't depend on border width
2024-08-30 14:09:38 -05:00
Grant Sanderson
513de19657
Clarify that ShaderWrapper id is an int
2024-08-23 14:44:00 -05:00
Grant Sanderson
9a5386b022
Instead of passing in joint_products to stroke shader, just track joint_angles and pass in global unit normal
2024-08-21 11:59:48 -05:00
Grant Sanderson
67bedc6d1f
Fix fill_depth_vert_format
2024-08-21 09:14:23 -05:00
Grant Sanderson
79ec791fc2
Move get_fill_canvas into VShaderWrapper
2024-08-21 09:02:22 -05:00
Grant Sanderson
dfc5f152dd
Have border width pre-multiply by alpha, and don't use a separate texture for that border width
2024-08-20 22:03:45 -05:00
Grant Sanderson
304856e6e0
Remove indices_list argument on ShaderWrapper.read_in
2024-08-20 14:21:37 -05:00
Grant Sanderson
a8784692e8
Reference new shader file structure
2024-08-20 12:58:53 -05:00
Grant Sanderson
0ac9ee1fbf
Don't deepcopy ShaderWrapper
2024-08-20 10:15:53 -05:00
Grant Sanderson
e796a0c6d6
Remove stray TODO
2024-08-20 09:10:14 -05:00
Grant Sanderson
f12b143d16
Unify get_shader_wrapper_list, and and better subdivide render groups by ShaderWrapper ids
2024-08-20 08:53:51 -05:00
Grant Sanderson
6223623b40
Ensure border width blends better within filled VMobject for opacity < 1
2024-08-19 21:39:53 -05:00
Grant Sanderson
7217c9fca5
Reorganize VShaderWrapper.render_fill
2024-08-19 20:51:37 -05:00
Grant Sanderson
c064b11e2a
Interleave base_point and unit_normal in the same array
2024-08-19 16:50:49 -05:00
Grant Sanderson
b7337f0781
Remove some ShaderWrapper methods which are no longer needed
2024-08-19 14:45:12 -05:00
Grant Sanderson
195264f079
Stop pretending to support non-winding fill in the fill shader.
...
Possibly, if we want to reintroduce it later on, it should have its own dedicated shader, and maybe a distinct Mobject type too
2024-08-19 14:37:11 -05:00
Grant Sanderson
3b5d63d2fa
Add depth shader to handle winding fill depth test.
2024-08-19 14:09:07 -05:00
Grant Sanderson
4cb16dfc0b
Don't apply depth test during winding fill
2024-08-19 11:28:58 -05:00
Grant Sanderson
4174f314b4
Reorganize, and ensure get_shader_wrapper_list works for general Groups
2024-08-19 09:17:58 -05:00
Grant Sanderson
f2bca0045f
Add border width and backstroke
2024-08-19 08:18:45 -05:00
Grant Sanderson
24b160f9f9
Update VMobject shader wrapper
...
Use a combined VBO
Render with TRIANGLE_STRIP, and ignore every other
2024-08-19 08:05:32 -05:00
Grant Sanderson
f9b9cf69fd
Update so that vbo is not recreated on each from, but is read into
2024-08-17 07:11:56 -05:00
Grant Sanderson
902a4f264e
Add white space after assert statements
2024-08-16 12:15:55 -05:00
Grant Sanderson
88672a21ff
Include texture id in shader wrapper id
...
This ensure that, among other things, ImageMobjects appearing in groups don't get lumped together in rendering.
2024-01-17 15:01:49 -06:00
Grant Sanderson
21d20541b5
Add texture_names_to_ids to ShaderWrapper
2023-06-10 09:25:44 -07:00
Grant Sanderson
7d1330fa68
Check if mobject_uniforms is None
2023-02-04 16:49:32 -08:00
Grant Sanderson
ac3db9b636
Add set_program_uniform function
2023-02-02 21:13:18 -08:00
Grant Sanderson
ee08c552bf
Remove ShaderWrapper.get_program_id
2023-02-02 20:49:13 -08:00
Grant Sanderson
7f940fbee4
Change how ShaderWrapper uniforms are handled
2023-02-02 17:45:52 -08:00
Grant Sanderson
c3823e722d
Update fill shader alpha blending, and simplify the fill canvas
2023-02-02 11:28:20 -08:00
Grant Sanderson
0c9afb65d9
Small clean up to render calls
2023-02-01 11:19:40 -08:00
Grant Sanderson
2cbad30f45
Change VMobject rendering mode to TRIANGLES
...
And set indices appropriately when reading in to the ShaderWrapper
2023-01-31 11:45:53 -08:00
Grant Sanderson
7e00660e47
Whoops, re-instate pre_render
2023-01-30 15:16:08 -08:00
Grant Sanderson
da9610b9f9
Remove redundancy
2023-01-28 17:54:00 -08:00
Grant Sanderson
38abef8871
Fix ShaderWrapper.init_textures
2023-01-27 19:27:23 -08:00
Grant Sanderson
40ae481979
Marginally better vbo/ibo tracking
2023-01-27 10:01:37 -08:00
Grant Sanderson
1707958e0f
Clean up fill shader a bit
2023-01-27 08:26:54 -08:00
Grant Sanderson
6388647860
Change to using glBlendFuncSeparate
...
To please type checkers
2023-01-26 22:51:14 -08:00
Grant Sanderson
7a59cc2f03
Use gl.MAX to blend alphas in fill
2023-01-26 22:40:29 -08:00
Grant Sanderson
0f89349bb8
Small clean up
2023-01-26 21:00:20 -08:00
Grant Sanderson
258bc2256a
Provide a check that shader uniforms really need updating before setting value
2023-01-26 20:01:59 -08:00
Grant Sanderson
37f0bf8c11
Fix winding fill blending
...
(Using somewhat of a hack)
2023-01-26 15:27:48 -08:00