Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergey Sharybin <sergey.vfx@gmail.com>2015-06-25 18:00:32 +0300
committerSergey Sharybin <sergey.vfx@gmail.com>2015-06-27 16:13:08 +0300
commit9260c0c2baf6ec8c03e10a895301fba0f9adfcb3 (patch)
tree182b0b0e17f58f41d147925779c9d1ade0f53811 /intern/cycles/render/light.h
parent48ef0501b7cbbd10d5462c68a2559b2b64848b97 (diff)
Cycles: Ignore light which has no contribution to the scene
This commit makes it so light which has zero energy or doesn't has emission shader at all is being ignored by the path tracing.
Diffstat (limited to 'intern/cycles/render/light.h')
-rw-r--r--intern/cycles/render/light.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/intern/cycles/render/light.h b/intern/cycles/render/light.h
index 824d99aeb93..afec3628dda 100644
--- a/intern/cycles/render/light.h
+++ b/intern/cycles/render/light.h
@@ -63,6 +63,9 @@ public:
int max_bounces;
void tag_update(Scene *scene);
+
+ /* Check whether the light has contribution the the scene. */
+ bool has_contribution(Scene *scene);
};
class LightManager {