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
|
748780378b
|
Have stroke_behind default to True for VMobjects with fill and no stroke
|
2024-08-21 08:43:57 -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
|
d0cb5b4eea
|
Fix normal orientation on Surface
|
2024-08-20 14:47:47 -05:00 |
|
Grant Sanderson
|
35ce4c6704
|
Use Mobject.set_uniform in Mobject.set_shading
|
2024-08-20 14:44:48 -05:00 |
|
Grant Sanderson
|
7ddbd13e38
|
Ensure mobject uniforms get passed to ShaderWrapper on init
|
2024-08-20 14:44:09 -05:00 |
|
Grant Sanderson
|
304856e6e0
|
Remove indices_list argument on ShaderWrapper.read_in
|
2024-08-20 14:21:37 -05:00 |
|
Grant Sanderson
|
82582d08bd
|
Fewer parameters for stroke frag shader
|
2024-08-20 13:32:52 -05:00 |
|
Grant Sanderson
|
a8784692e8
|
Reference new shader file structure
|
2024-08-20 12:58:53 -05:00 |
|
Grant Sanderson
|
0a313eb119
|
Reorganize quadratic bezier shader files
|
2024-08-20 12:58:34 -05:00 |
|
Grant Sanderson
|
5eb5a11499
|
Don't have absolute stroke width change with frame size (at least temporarily)
|
2024-08-20 12:36:28 -05:00 |
|
Grant Sanderson
|
0a585b123c
|
Use stash_mobject_pointers on Mobject.deepcopy
|
2024-08-20 12:15:37 -05:00 |
|
Grant Sanderson
|
910f28f52e
|
Don't have a default flat stroke in set_style
|
2024-08-20 12:13:18 -05:00 |
|
Grant Sanderson
|
7474ae17b0
|
Change default to flat stroke, except in 3d situations
|
2024-08-20 11:52:05 -05:00 |
|
Grant Sanderson
|
b8931e7b9c
|
When shader_id is updated, have ancestors mark data as changed
|
2024-08-20 11:36:37 -05:00 |
|
Grant Sanderson
|
0414f8786c
|
Use Mobject.set_uniform to reassign flat_stroke
|
2024-08-20 11:35:42 -05:00 |
|
Grant Sanderson
|
e0191d81d9
|
Instead of tracking _shaders_initialized, just check if self.shader_wrapper is None
|
2024-08-20 10:48:43 -05:00 |
|
Grant Sanderson
|
0ac9ee1fbf
|
Don't deepcopy ShaderWrapper
|
2024-08-20 10:15:53 -05:00 |
|
Grant Sanderson
|
b9645ad196
|
Only update shader wrapper when stroke_behind genuinely changes
|
2024-08-20 10:00:52 -05:00 |
|
Grant Sanderson
|
87ca6e56aa
|
Don't treat font size as a uniform
|
2024-08-20 10:00:07 -05:00 |
|
Grant Sanderson
|
e61957a4e0
|
Fix wrong check for path_func in last commit
|
2024-08-20 09:25:30 -05:00 |
|
Grant Sanderson
|
a8ef9629eb
|
More direct lerp in Mobject.interpolate
|
2024-08-20 09:10:33 -05:00 |
|
Grant Sanderson
|
e796a0c6d6
|
Remove stray TODO
|
2024-08-20 09:10:14 -05:00 |
|
Grant Sanderson
|
5ff80ffc6c
|
Fix matplotlib color map import
|
2024-08-20 08:54:06 -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
|
08e33faab8
|
Ensure scene properly updates on an embed
|
2024-08-19 21:49:39 -05:00 |
|
Grant Sanderson
|
0b2c59ac6b
|
More explicitly unpack v_base_normal
|
2024-08-19 21:45:26 -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
|
b288d5301e
|
Get rid of cached _has_stroke and _has_fill parameters
|
2024-08-19 17:27:47 -05:00 |
|
Grant Sanderson
|
058914fdd2
|
Mildly more efficient CameraFrame.get_view_matrix()
|
2024-08-19 16:54:29 -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
|
09d147c8ef
|
Set default border width to 0.5, and keep it for opacities < 1
|
2024-08-19 14:35:19 -05:00 |
|
Grant Sanderson
|
39bcead679
|
Clean up
|
2024-08-19 14:22:10 -05:00 |
|
Grant Sanderson
|
28eba26bee
|
Remove stray new line
|
2024-08-19 14:09:23 -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
|
a12fa0c03d
|
Remove attributes from VMobject which are now handled in VShaderWrapper
|
2024-08-19 10:04:28 -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
|
0efa96e399
|
Just use L-inf norm for point equality
|
2024-08-16 16:18:37 -05:00 |
|
Grant Sanderson
|
ccc84f4ab1
|
Give Numbers a default border width
|
2024-08-16 15:21:29 -05:00 |
|
Grant Sanderson
|
bb42b66201
|
Include fill border width in style
|
2024-08-16 15:21:20 -05:00 |
|
Grant Sanderson
|
c20ce8d633
|
Have arrows default to flat stroke
|
2024-08-16 15:10:40 -05:00 |
|
Grant Sanderson
|
0267740bde
|
Change STROKE_WIDTH_CONVERSION width back to older value
|
2024-08-16 15:03:47 -05:00 |
|