This repository has been archived on 2023-10-09. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
blender-archive/source/blender/blenkernel/intern
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-11-14 17:21:34 +11:00
2018-07-06 07:55:29 +02:00
2018-11-14 17:21:34 +11:00
2018-11-14 17:21:34 +11:00
2018-10-17 12:43:41 +02:00
2018-11-13 14:25:36 +11:00
2018-10-15 16:59:27 +11:00
2018-10-17 12:43:41 +02:00
2018-10-15 18:12:14 +11:00
2018-11-14 17:21:34 +11:00
2018-11-14 17:10:56 +11:00
2018-10-17 12:43:41 +02:00
2018-11-17 22:23:25 +11:00
2018-11-13 14:25:36 +11:00
2018-11-15 16:33:00 +01:00
2018-10-17 12:43:41 +02:00
2018-09-26 17:49:40 +02:00
2018-11-14 17:21:34 +11:00
2018-10-31 21:45:27 -03:00
2018-09-19 12:14:36 +10:00
2018-11-10 09:27:20 +11:00
2018-07-13 10:52:40 +02:00
2018-11-08 15:15:29 +01:00
2018-11-14 17:21:34 +11:00
2018-10-18 15:43:06 +02:00
2018-11-08 08:02:09 +11:00
2018-10-19 09:18:22 +11:00
2018-10-11 10:34:30 +11:00
2018-11-02 07:44:26 +11:00
2018-11-14 17:21:34 +11:00
2018-10-18 15:43:06 +02:00
2018-11-14 11:27:42 +11:00
2018-10-23 11:01:25 +11:00
2018-09-19 12:14:36 +10:00
2018-10-19 09:18:22 +11:00
2018-10-19 09:18:22 +11:00
2018-11-14 17:21:34 +11:00
2018-07-20 12:13:58 +02:00
2018-11-01 07:32:13 +11:00
2018-11-14 17:21:34 +11:00
2018-11-15 16:36:35 +01:00
2018-09-20 10:06:59 +10:00
2018-09-20 10:06:59 +10:00
2018-11-15 16:31:26 +01:00
2018-11-15 16:36:35 +01:00