blender/source/gameengine/Rasterizer/RAS_OpenGLRasterizer
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
..
CMakeLists.txt BGE code cleanup: Removing RAS_GLExtensionManager. 2015-12-07 19:25:12 -08:00
RAS_IStorage.h BGE: Remove RAS_IRasterizer::IndexPrimitivesMulti() 2015-12-07 19:05:04 -08:00
RAS_ListRasterizer.cpp OpenGL/BGE: Remove RAS_StorageIM (glBegin/glEnd rendering of mesh data) 2015-12-07 19:05:09 -08:00
RAS_ListRasterizer.h OpenGL/BGE: Remove RAS_StorageIM (glBegin/glEnd rendering of mesh data) 2015-12-07 19:05:09 -08:00
RAS_OpenGLLight.cpp Full Inverse-Quadratic-Equation Lamp Falloff 2016-03-13 02:05:36 +01:00
RAS_OpenGLLight.h BGE: Allow access to light shadow settings with python 2016-01-17 18:47:14 +01:00
RAS_OpenGLRasterizer.cpp cleanup: spelling, comments, alignment 2016-01-28 01:36:12 -05:00
RAS_OpenGLRasterizer.h use float (not double) for font matrix 2015-12-14 22:28:12 -05:00
RAS_StorageVA.cpp BGE: Remove RAS_IRasterizer::IndexPrimitivesMulti() 2015-12-07 19:05:04 -08:00
RAS_StorageVA.h BGE: Remove RAS_IRasterizer::IndexPrimitivesMulti() 2015-12-07 19:05:04 -08:00
RAS_StorageVBO.cpp BGE: Fix memory leak in VBO code 2016-03-10 19:41:45 -08:00
RAS_StorageVBO.h BGE: Fix memory leak in VBO code 2016-03-10 19:41:45 -08:00