Commit graph

23 commits

Author SHA1 Message Date
Grant Sanderson
acb4b1c6b3 Finalize color at the vertex level, rather than the fragment level, for fill 2023-02-02 12:04:23 -08:00
Grant Sanderson
17cef427f1 Update fill shader alpha blending, and simplify the fill canvas 2023-02-02 10:42:24 -08:00
Grant Sanderson
86fb69c5bb Track unit normal for fill 2023-01-27 12:35:43 -08:00
Grant Sanderson
1707958e0f Clean up fill shader a bit 2023-01-27 08:26:54 -08:00
Grant Sanderson
5803a00598 Use smaller fill_texture, adjusting winding-fill blending hack as is necessary 2023-01-26 20:14:22 -08:00
Grant Sanderson
65afed1bd1 Move shading from fill geom to fill frag shader 2023-01-26 15:50:27 -08:00
Grant Sanderson
37f0bf8c11 Fix winding fill blending
(Using somewhat of a hack)
2023-01-26 15:27:48 -08:00
Grant Sanderson
3f5df432ce Consider winding_fill alphas pre-multiplied 2023-01-26 12:17:21 -08:00
Grant Sanderson
f0df5c759d Make winding fill optional, and make winding additive rather than toggling 2023-01-24 20:03:23 -08:00
Grant Sanderson
6e56c31d67 Use gl_InstanceID instead of hacking triangle_strip 2023-01-24 13:49:43 -08:00
Grant Sanderson
4774d2bc3b First pass at a winding-based fill approach 2023-01-24 13:29:34 -08:00
Grant Sanderson
fe7dc3c459 Tiny cleanup 2023-01-20 10:07:28 -08:00
Grant Sanderson
a004c88e02 Consolidate functions associated with computing gl_Position 2023-01-13 22:07:28 -08:00
Grant Sanderson
b31ad49850 A little clean up to fill shader 2023-01-10 09:49:51 -08:00
Grant Sanderson
05796654f4 Replace "bezier_degree" with "is_linear" 2023-01-10 08:54:02 -08:00
Grant Sanderson
b4544052d9 Change fill shader to use simpler uv space 2023-01-09 19:54:09 -08:00
Grant Sanderson
16390283cf Small cleanup for fill shader 2023-01-08 23:34:02 -05:00
Grant Sanderson
4d65ceabf7 Include zero in orientation checks 2022-12-28 11:17:45 -08:00
Grant Sanderson
083de38e4c Remove "arbitrary-seeming branching" 2022-12-28 10:05:44 -08:00
Grant Sanderson
185782a2e7 Remove stray brace 2021-11-01 13:05:13 -07:00
Samip Poudel
5a16e3a358 Converted 0 to 0.0 in sdf() and angle_between_vectors() 2021-02-03 17:22:28 +05:45
Grant Sanderson
59af903f14 Reorganize the interaction between CameraFrame and shader perspective transforms, along with some keyboard interactions for panning 2021-01-18 16:39:29 -08:00
Grant Sanderson
065df65cf1 Reorganize how shader files sit in the shaders folder 2021-01-05 23:14:16 -08:00
Renamed from manimlib/shaders/quadratic_bezier_fill_frag.glsl (Browse further)