Blender Git Commit Log

Git Commits -> Revision 516e000

Revision 516e000 by Clément Foucault (master)
November 15, 2018, 17:16 (GMT)
Eevee: Add Light Threshold value

This is an important change. Starting from now, all lights have a finite
influence radius (similar to the old sphere option for BI).

In order to avoid costly setup time, this distance is first computed
automatically based on a light threshold. The distance is computed
at the light origin and using the inverse square falloff. The setting
can be found inside the render settings panel > shadow tab.

This light threshold does not take the light shape into account an may not
suit every case. That's why we provide a per lamp override where you can
just set the cutt off distance (Light Properties Panel > Light >
Custom Distance).

The influence distance is also used as shadow far clip distance.

This influence distance does not concerns sun lights that still have a
far clip distance.

---

This change is important because it makes it possible to cull lights
an improve performance drastically in the future.

Commit Details:

Full Hash: 516e000aa9762c6b19c64ce46e5dd458cd04a1fb
Parent Commit: d082b18
Lines Changed: +170, -47

13 Modified Paths:

/release/scripts/startup/bl_ui/properties_data_light.py (+33, -1) (Diff)
/release/scripts/startup/bl_ui/properties_render.py (+1, -0) (Diff)
/source/blender/blenkernel/intern/lamp.c (+1, -0) (Diff)
/source/blender/blenkernel/intern/scene.c (+1, -0) (Diff)
/source/blender/blenloader/intern/versioning_280.c (+12, -0) (Diff)
/source/blender/draw/engines/eevee/eevee_lights.c (+81, -42) (Diff)
/source/blender/draw/engines/eevee/eevee_private.h (+1, -1) (Diff)
/source/blender/draw/engines/eevee/shaders/bsdf_common_lib.glsl (+1, -1) (Diff)
/source/blender/draw/engines/eevee/shaders/lamps_lib.glsl (+16, -0) (Diff)
/source/blender/makesdna/DNA_lamp_types.h (+2, -1) (Diff)
/source/blender/makesdna/DNA_scene_types.h (+1, -1) (Diff)
/source/blender/makesrna/intern/rna_lamp.c (+13, -0) (Diff)
/source/blender/makesrna/intern/rna_scene.c (+7, -0) (Diff)
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021