http://www.miikahweb.com/feed.php MiikaHweb - Blender Commits By Jackoalan http://www.miikahweb.com/ MiikaHweb - Blender Commits By Jackoalan fi Fri, 20 Sep 19 10:58:38 +0000 MiikaHweb RSS contact at miikahweb.com <![CDATA[[861616b] master: Full Inverse-Quadratic-Equation Lamp Falloff]]> http://www.miikahweb.com/en/blender/git-logs/commit/861616bf693b78b070ada6cbc6aa79eb807fdde8 861616b
Branches : master
Author : Jack Andersen (jackoalan)
Committed By : Antony Riakiotakis (psy-fi)
----------------------------------------
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

----------------------------------------
13 Paths Changed]]>
Sun, 13 Mar 2016 01:05:36 +0000 http://www.miikahweb.com/en/blender/git-logs/commit/861616bf693b78b070ada6cbc6aa79eb807fdde8Jack Andersen