Blender Git Loki

Git Commits -> Revision 7bb5125

Revision 7bb5125 by Clément Foucault (master)
November 19, 2018, 17:05 (GMT)
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

Commit Details:

Full Hash: 7bb512594cd9502fea290ac6124f2eb5fd3cfce8
Parent Commit: 2b56d21
Lines Changed: +122, -15

6 Modified Paths:

/source/blender/blenkernel/BKE_studiolight.h (+1, -1) (Diff)
/source/blender/blenkernel/intern/studiolight.c (+33, -6) (Diff)
/source/blender/draw/engines/workbench/shaders/workbench_world_light_lib.glsl (+39, -6) (Diff)
/source/blender/draw/engines/workbench/workbench_materials.c (+1, -1) (Diff)
/source/blender/draw/engines/workbench/workbench_private.h (+3, -1) (Diff)
/source/blender/draw/engines/workbench/workbench_studiolight.c (+45, -0) (Diff)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021