20 Commits

Author SHA1 Message Date
db421e3981 Video work (#2318)
* Only use -no-pdf for xelatex rendering

* Instead of tracking du and dv points on surface, track points off the surface in the normal direction

This means that surface shading will not necessarily work well for arbitrary transformations of the surface. But the existing solution was flimsy anyway, and caused annoying issues with singularity points.

* Have density of anchor points on arcs depend on arc length

* Allow for specifying true normals and orientation of Sphere

* Change miter threshold on stroke shader

* Add get_start_and_end to DashedLine

* Add min_total_width option to DecimalNumber

* Have BackgroundRectangle.set_style absorb (and ignore) added configuration

Note, this feels suboptimal

* Add LineBrace

* Update font_size adjustment in Tex
2025-02-26 07:52:59 -08:00
fbce0b132c Temporary band-aide for degenerate normal vector calculations
This solution is a bit too specific to the case of spheres.
2024-11-25 12:39:32 -07:00
95fca885c9 Push clip plane functionality up to all Mobjects 2024-09-17 17:20:19 -05:00
ada66ee8fb Remove stray comment 2024-08-22 15:31:10 -05:00
9a7bfdd1c9 For Surface, calculate normals with neighboring points 2024-08-22 15:21:40 -05:00
55da5d5d03 Remove use of dv_points and du_points, pass unit normals to shader instead 2023-01-30 20:49:32 -08:00
e950286fa4 Replace get_gl_Position -> emit_gl_Position 2023-01-30 18:43:28 -08:00
b667d89e9b Simplify get_gl_Position 2023-01-18 13:44:41 -08:00
c3cd64f68c Package reflectiveness, gloss and shadow into a single uniform "shading" 2023-01-16 19:33:57 -08:00
6f9f83fb1b Unify shader_dtype and data_dtype 2023-01-15 19:09:29 -08:00
c8238f6b39 Consolidate lighting uniforms 2023-01-14 07:57:47 -08:00
a004c88e02 Consolidate functions associated with computing gl_Position 2023-01-13 22:07:28 -08:00
dae51abc17 Allow for a clip plane with Surface 2023-01-13 21:42:34 -08:00
1c1325ff8d More coloring work of Surface to vert shader 2023-01-13 21:04:36 -08:00
81c3ae3037 Have separate notions of gloss and reflectiveness 2021-11-08 21:46:09 -08:00
442e7fc14d Use focal_distance as camera_distance in shaders. 2021-06-05 17:43:32 +08:00
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
e98ebfe9e1 Rename add_light -> finalize_color and leave room for other color manipulations 2021-01-09 22:11:38 -08:00
7b8677fd6c Push all mention of the #INSERT convention to a note in the insert file 2021-01-07 16:16:20 -08:00
065df65cf1 Reorganize how shader files sit in the shaders folder 2021-01-05 23:14:16 -08:00