diff options
author | Brecht Van Lommel <brechtvanlommel@pandora.be> | 2011-10-17 00:58:48 +0400 |
---|---|---|
committer | Brecht Van Lommel <brechtvanlommel@pandora.be> | 2011-10-17 00:58:48 +0400 |
commit | 7b06c1718b3362f8ddf5eb3815bab8fd1abce428 (patch) | |
tree | 53cbe03baf3eb1059a0f5ecc5c0a4e36e3617e27 | |
parent | 5fd67a3ba5ad10a932a0a1b4cbd3fe37691fbae1 (diff) |
Cycles: material "sample as light" option, to make the integrator sample the
object as a mesh light or not. This may result in more/less noisy renders
depending on the situation, but should converge to the same result.
-rw-r--r-- | intern/cycles/blender/addon/properties.py | 2 | ||||
-rw-r--r-- | intern/cycles/blender/blender_shader.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/intern/cycles/blender/addon/properties.py b/intern/cycles/blender/addon/properties.py index a47174dd6c6..6fab3ecaa68 100644 --- a/intern/cycles/blender/addon/properties.py +++ b/intern/cycles/blender/addon/properties.py @@ -118,7 +118,7 @@ class CyclesMaterialSettings(bpy.types.PropertyGroup): @classmethod def register(cls): bpy.types.Material.cycles = PointerProperty(type=cls, name="Cycles Material Settings", description="Cycles material settings") - cls.sample_as_light = BoolProperty(name="Sample as Light", description="Use direct light sampling, to reduce noise for small or strong emitting materials", default=False) + cls.sample_as_light = BoolProperty(name="Sample as Light", description="Use direct light sampling, to reduce noise for small or strong emitting materials", default=True) cls.homogeneous_volume = BoolProperty(name="Homogeneous Volume", description="When using volume rendering, assume volume has the same density everywhere, for faster rendering", default=False) @classmethod diff --git a/intern/cycles/blender/blender_shader.cpp b/intern/cycles/blender/blender_shader.cpp index 9e3095f23e2..ed84777de7c 100644 --- a/intern/cycles/blender/blender_shader.cpp +++ b/intern/cycles/blender/blender_shader.cpp @@ -613,7 +613,7 @@ void BlenderSync::sync_materials() /* settings */ PointerRNA cmat = RNA_pointer_get(&b_mat->ptr, "cycles"); - //shader->sample_as_light = get_boolean(cmat, "sample_as_light"); + shader->sample_as_light = get_boolean(cmat, "sample_as_light"); shader->homogeneous_volume = get_boolean(cmat, "homogeneous_volume"); shader->set_graph(graph); |