Files
test2/source/blender
Clément Foucault 7bb512594c Workbench: Use non-negative lighting evaluation
This makes the lighting a bit more diffuse but don't produce negative
values.

Add a bias of 1.5f to make the lighting a bit more directionnal.

The implementation is based on:
https://github.com/kayru/Probulator/blob/master/Source/Probulator/SphericalHarmonics.h#L136
which is derived from:
http://www.geomerics.com/wp-content/uploads/2015/08/CEDEC_Geomerics_ReconstructingDiffuseLighting1.pdf

The shader implementation is optimized and has the same runtime cost
as previous method:
* no sh eval : 0.13ms
* prev sh eval : 0.14ms
* new sh eval : 0.22ms
* new sh eval opti : 0.14ms
2018-11-19 18:05:15 +01:00
..
2018-10-17 12:43:41 +02:00
2018-11-14 11:50:37 +01:00
2018-11-19 13:37:18 +11:00
2018-09-26 17:49:40 +02:00
2018-11-14 17:10:56 +11:00
2018-11-18 10:21:37 +01:00