blender/source/gameengine
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
..
BlenderRoutines Remove SCons building system 2016-01-04 14:20:48 +05:00
Converter Full Inverse-Quadratic-Equation Lamp Falloff 2016-03-13 02:05:36 +01:00
Expressions Remove SCons building system 2016-01-04 14:20:48 +05:00
GameLogic Fix warnings reported by MSVC 2016-02-23 09:44:54 +01:00
GamePlayer Remove SCons building system 2016-01-04 14:20:48 +05:00
Ketsji UPBGE: Disallow shadow buffer render when the lamp is hidden. 2016-03-01 21:21:11 +01:00
Network Remove SCons building system 2016-01-04 14:20:48 +05:00
Physics Remove SCons building system 2016-01-04 14:20:48 +05:00
Rasterizer Full Inverse-Quadratic-Equation Lamp Falloff 2016-03-13 02:05:36 +01:00
SceneGraph Remove SCons building system 2016-01-04 14:20:48 +05:00
VideoTexture Make Blender ready for C++11 2016-02-20 16:45:53 +01:00
CMakeLists.txt CMake: Enable strict flags for C++ 2015-03-27 18:23:31 +05:00