summaryrefslogtreecommitdiffstats
path: root/math.cginc
Commit message (Collapse)AuthorAge
* Add bayer matrices & grabpass-based lens shaderyum2025-01-31
|
* Add ability to swap decal slotsyum2025-01-27
| | | | | | | | Also: * Rim lighting can disable texture normals * Frame counter is now hidden behind a checkbox, and unconditionally overrides audiolink
* Tweak clearcoatyum2025-01-22
|
* Add UV domain warping, box discard gimmicksyum2025-01-20
| | | | | | | | | | Also: * optimize the ds2 terrain gimmick (ds2_11) * use golden ratio + blue noise on marched fog * add second sun to analytic fog * fix gcd() implementation * add faster rand2() implementation
* Add terrain gimmick (ds2_11) and analytic fog (fog01)yum2025-01-19
|
* Use quad intrinsics to compute trochoid normalsyum2025-01-17
| | | | | | | Simple algo. Use quad intrinsics to get neighboring pixels' (x & y) positions in trochoid space. Compute tangent and bitangent from that. Then normal as cross product. There's some artifacting on diagonal boundaries.
* Continue fucking with trochoid normalsyum2025-01-16
| | | | | Seems like the determinant of the jacobian is ~0, meaning it's not invertible. That means the normals look fucked up.
* Fog cleanupyum2024-11-05
|
* Lots of tweaksyum2024-11-03
|
* Fog uses interleaved gradient noise instead of white noiseyum2024-11-02
| | | | | This lets us use a much higher step size before noise becomes too gross to look at.
* add water stuffyum2024-10-24
|
* Add gerstner water gimmickyum2024-10-23
|
* Add fog parameters; add Unity fog to fwd/add passesyum2024-10-08
|
* Add fog gimmickyum2024-10-07
|
* Add new eye gimmickyum2024-09-29
|
* Add letter grid gimmickyum2024-09-28
|
* Add shader inlining toolingyum2024-09-18
| | | | | This should solve the issue of Unity failing to fully recompile my fucking shader.
* Start new eye shader, add UV mirror flippingyum2024-09-10
| | | | Also tune rand3() to behave better on rorschach demo.
* Add glitter option to rim lightingyum2024-06-25
| | | | | | Now rim lighting can illuminate the avatar as if it has glitter on it. Also deprecate glitter seed, since it was unused.
* Initial commityum2024-04-22
Code bomb. Put tooner in version control.