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
..
2016-03-13 02:05:36 +01:00
2015-06-13 03:24:07 +10:00
2015-05-11 12:39:39 +10:00
2015-04-02 17:13:45 +02:00
2015-05-12 16:06:37 +05:00
2015-05-06 11:13:42 +10:00
2016-01-09 09:17:18 +11:00
2016-03-03 21:11:22 +11:00
2015-05-18 13:42:47 +10:00
2016-02-18 19:35:48 +11:00
2016-01-25 19:01:54 +11:00
2016-03-10 09:28:29 -03:00
2015-09-23 22:57:00 +10:00
2015-08-06 13:03:07 +10:00
2015-07-31 14:00:07 +10:00
2015-10-28 02:43:06 +05:00
2015-03-30 21:18:49 +11:00
2016-02-07 13:32:11 +13:00
2015-07-02 16:20:22 +10:00
2015-10-20 14:44:57 +02:00
2015-01-24 17:26:59 +11:00
2016-02-28 15:29:56 +01:00
2015-07-25 07:44:25 +10:00
2016-02-09 00:19:28 +11:00
2015-08-27 12:10:01 +02:00
2016-02-02 17:39:40 +11:00
2015-03-29 03:56:39 +11:00
2015-07-27 16:01:56 +10:00
2015-12-14 00:16:05 +11:00
2015-08-01 12:37:52 +10:00
2015-03-29 03:56:39 +11:00
2015-03-30 21:18:49 +11:00
2015-03-29 03:56:39 +11:00
2016-02-12 11:05:05 -02:00
2015-03-19 14:34:14 +11:00
2016-01-04 01:25:52 -05:00
2016-02-09 02:45:36 +13:00
2015-11-02 21:20:03 +11:00
2015-05-11 16:37:15 +02:00
2015-10-15 16:12:00 +02:00
2015-01-01 23:42:28 +11:00
2016-02-01 16:11:24 +01:00
2015-10-12 20:12:55 +02:00
2015-10-20 14:44:57 +02:00
2015-10-20 14:44:57 +02:00
2016-01-06 19:48:10 +01:00
2016-03-03 21:11:22 +11:00
2015-10-20 14:44:57 +02:00
2015-10-23 01:20:01 +11:00
2015-06-11 19:34:21 +02:00
2015-12-28 00:37:07 +01:00
2015-04-07 13:19:50 +10:00
2015-10-20 14:44:57 +02:00
2015-07-23 15:08:27 +10:00
2015-07-13 18:05:38 +02:00
2016-02-28 15:29:56 +01:00
2015-10-08 15:05:37 +02:00
2015-10-06 19:44:02 +11:00
2015-07-30 14:43:58 +02:00
2015-04-14 18:39:02 +12:00
2016-02-11 22:34:15 +01:00
2016-01-21 08:03:47 +11:00
2016-01-09 09:42:14 +01:00
2015-11-12 18:54:26 +11:00
2015-04-07 11:01:47 +10:00
2015-05-01 19:20:42 +02:00
2015-08-31 22:00:30 +03:00
2016-02-02 15:01:58 +01:00
2016-02-13 18:59:56 +11:00
2016-01-23 08:39:40 +01:00
2015-11-13 15:26:22 +01:00
2015-10-08 15:05:37 +02:00
2015-10-08 15:05:37 +02:00
2016-03-10 09:28:29 -03:00
2015-12-01 13:31:26 +11:00
2016-02-16 00:07:03 +11:00
2016-03-07 11:24:03 +11:00
2016-01-09 04:37:53 +01:00
2015-10-06 19:44:02 +11:00
2015-10-20 14:44:57 +02:00
2015-11-04 21:30:25 +05:00
2015-10-25 17:44:32 +11:00
2016-03-11 00:06:09 +11:00
2015-07-18 22:49:10 +02:00
2016-01-26 11:44:43 +01:00
2014-08-26 20:53:41 +10:00
2015-10-20 14:44:57 +02:00
2015-04-06 10:40:12 -03:00
2015-04-06 10:40:12 -03:00
2015-04-07 08:46:48 +10:00
2016-02-15 19:05:25 +11:00
2016-02-03 14:40:02 +01:00
2014-10-30 23:12:19 +05:00