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