diff options
author | Lukas Stockner <lukas.stockner@freenet.de> | 2015-04-27 22:51:55 +0300 |
---|---|---|
committer | Sergey Sharybin <sergey.vfx@gmail.com> | 2015-04-27 23:30:16 +0300 |
commit | f478c2cfbd3861cfca1d1a019066d30a4410a1f7 (patch) | |
tree | c769fa41a53a65f05867df0b78bd87eb06a788ef /intern/cycles/render/light.h | |
parent | 84836e8952451228aaef6f79fbfbca9c48c8346e (diff) |
Cycles: Added support for light portals
This patch adds support for light portals: objects that help sampling the
environment light, therefore improving convergence. Using them tor other
lights in a unidirectional pathtracer is virtually useless.
The sampling is done with the area-preserving code already used for area lamps.
MIS is used both for combination of different portals and for combining portal-
and envmap-sampling.
The direction of portals is considered, they aren't used if the sampling point
is behind them.
Reviewers: sergey, dingto, #cycles
Reviewed By: dingto, #cycles
Subscribers: Lapineige, nutel, jtheninja, dsisco11, januz, vitorbalbio, candreacchio, TARDISMaker, lichtwerk, ace_dragon, marcog, mib2berlin, Tunge, lopataasdf, lordodin, sergey, dingto
Differential Revision: https://developer.blender.org/D1133
Diffstat (limited to 'intern/cycles/render/light.h')
-rw-r--r-- | intern/cycles/render/light.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/intern/cycles/render/light.h b/intern/cycles/render/light.h index 1f8eac6a97f..824d99aeb93 100644 --- a/intern/cycles/render/light.h +++ b/intern/cycles/render/light.h @@ -56,6 +56,8 @@ public: bool use_transmission; bool use_scatter; + bool is_portal; + int shader; int samples; int max_bounces; |