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
aaa28a2712
Discard transparent parts of textured surfaces
2024-10-17 12:31:53 -05:00
Grant Sanderson
9a7bfdd1c9
For Surface, calculate normals with neighboring points
2024-08-22 15:21:40 -05:00
Grant Sanderson
e7734ca84c
Fix TexturedSurface
2023-01-30 20:57:21 -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
874906bedf
Replace 'light_source_position' with 'light_position'
2023-01-18 10:04:51 -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
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
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