Go to file
Jack Andersen 861616bf69 Full Inverse-Quadratic-Equation Lamp Falloff
This patch adds a new `falloff_type` ('Inverse Coefficients') for Lamps in
Blender-Internal and GLSL.

The current falloff modes use a formula like this inverse-square one:

`I = E × (D^2 / (D^2 + Q × r^2))`

While such a formula is simple for 3D-artists to use, it's algebraically
cumbersome to work with. Game-designers authoring their own shaders
could benefit much more by having direct control of falloff-coefficients:

`I = E × (1.0 / (coefC + coefL × r + coefQ × r^2))`

In this mode, the `distance` parameter is unused (except for 'Sphere'
mode); instead relying on the designer to mathematically-model the
falloff-behavior.

The UI has been patched like so:
{F153843}

Reviewers: brecht, psy-fi

Reviewed By: psy-fi

Subscribers: brita_, antidote, campbellbarton, psy-fi

Differential Revision: https://developer.blender.org/D1194
2016-03-13 02:05:36 +01:00
build_files CMake: Avoid call of find_package(Git) for every compile with buildinfo enabled 2016-03-11 14:46:18 +05:00
doc Python docs: minor cleanup and adding missing parenthesis to a code sample 2016-03-05 19:46:01 +00:00
extern Attempt to fix GLog compilaton on FreeBSD 2016-02-21 13:40:22 +01:00
intern Cycles: Some typo fixes 2016-03-12 15:01:20 +05:00
release Full Inverse-Quadratic-Equation Lamp Falloff 2016-03-13 02:05:36 +01:00
source Full Inverse-Quadratic-Equation Lamp Falloff 2016-03-13 02:05:36 +01:00
tests Tests: improve RNA default reporting 2016-02-29 11:55:44 +11:00
.arcconfig Use HTTPS protocol for arc 2013-12-24 22:57:27 +06:00
.gitignore Git ignore BUILD_NOTES.txt from install_deps.sh. 2015-11-23 20:17:02 +01:00
.gitmodules Remove SCons building system 2016-01-04 14:20:48 +05:00
CMakeLists.txt CMake: Warn when buildinfo is disabled due to missing Git 2016-03-11 14:49:23 +05:00
COPYING == docs == 2010-10-13 14:44:22 +00:00
GNUmakefile Minor edits to sync make.bat & makefile 2016-01-04 20:42:00 +11:00
make.bat Fix make.bat checking 64bit systems 2016-02-10 00:26:12 +11:00