summaryrefslogtreecommitdiffstats
path: root/fog.cginc
Commit message (Collapse)AuthorAge
* Restore spherical boundary to fog gimmickyum2025-01-27
|
* Clearcoat can disable texture normalsyum2025-01-21
| | | | | | | | | | | | | | | | | Also: * terrain gimmick * makes some hardcoded shit into params * add alternative normal evaluation methods * stochastic method gives best results without getting into analytic normals * add FBM noise texture slot to improve perf * add initial raytrace to sphere * stabilizes appearance as camera moves * add backtracking * eliminates sharp lines without sacrificing perf * fog 00 can render on a plane now, in addition to cylinder * add epilepsy protection filter
* 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
|
* im going to kill myselfyum2025-01-14
| | | | | | | attempt to fix hypotrochoid normals key insight is that multiplying normal by transpose(invert(jacobian)) of transform should work, but it fucking doesn't
* Fix shadow caster passyum2025-01-04
|
* More fog tweaks: add animated noise, motion vectoryum2025-01-04
|
* Fog now uses object coordinatesyum2025-01-03
| | | | Also overhaul how emitter planes are specified. Use normal and tangent.
* Refactor tonemapping curves into their own headersyum2024-11-18
| | | | Also add iq's "almost identity" curve.
* Update function nameyum2024-11-17
| | | | Aces filmic is more accurate than just "aces".
* Add brightness clamping to fogyum2024-11-17
| | | | | Use a nice "almost identity" function to create a smooth transition to the clamped value.
* Add ACES tonemapping to fogyum2024-11-16
| | | | Looks better lol
* Fox texture samples now use pointyum2024-11-16
| | | | Small perf win
* Add separate sliders for diffuse/direct lightingyum2024-11-09
|
* Tweak fog diffuseyum2024-11-08
| | | | Average LODs 9 and 11.
* Optimize fog againyum2024-11-08
| | | | | Drop fbm, it doesn't contribute as much visual interest per FLOP as domain warping.
* Fog domain warping now occurs in 3dyum2024-11-07
|
* Fog tweaksyum2024-11-07
|
* Begin experimenting with domain warpingyum2024-11-06
|
* Add baked normals & ltcgi to fogyum2024-11-06
|
* Fog cleanupyum2024-11-05
|
* Add toggle to light fog emitter with normalsyum2024-11-04
|
* Add fog normalsyum2024-11-04
| | | | | Uses iquilez's directional derivative model and a simplified lighting model. Lighting is evaluated at each sample.
* Begin work adding normals to fogyum2024-11-04
|
* Lots of tweaksyum2024-11-03
|
* Fix energy preservation in emitter samplingyum2024-11-03
| | | | Lower step sizes would gain energy.
* 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.
* Step size no longer depends on densityyum2024-11-02
|
* Remove redundant saturateyum2024-11-02
|
* Update cloningyum2024-10-26
| | | | | Optimize cloning logic, and make each clone rotate independently of the others when the explosion effect is active.
* Begin work on aurora gimmickyum2024-10-17
|
* More fog golfingyum2024-10-15
|
* Clean up fog code before tensorizingyum2024-10-15
|
* Mitigate fog noise in desktop modeyum2024-10-15
|
* Fix fog time scalingyum2024-10-13
|
* Fog lod scales with densityyum2024-10-13
|
* Fix fog EV after exponentiatingyum2024-10-13
|
* Fog performance optimizationsyum2024-10-13
| | | | | | * Minimize transcendental ops * Minimize use of XU ops (e.g. rcp()) * Remove redundant terms (e.g. ao)
* Try 8x8x8 red only textureyum2024-10-12
|
* Begin performance profiling of fogyum2024-10-12
|
* Fog performance optimizationsyum2024-10-11
| | | | | | | | * Rename albedo cutoff to alpha cutoff * Add LODs for calculating fog density * Use 3D noise texture to speed up density calculation * Eliminate low impact octaves from density calculation * Add support for multiple emitters
* Rework step size / densityyum2024-10-09
| | | | | Step size is now derived from density. Step size is reimagined as a "quality" multiplier.
* Add emitter texture to fogyum2024-10-09
|
* Add fog parameters; add Unity fog to fwd/add passesyum2024-10-08
|
* Add fog gimmickyum2024-10-07