From 469447f7077e42ec73d71e51f8f6bebc918fdfa6 Mon Sep 17 00:00:00 2001 From: Thomas Dinges Date: Fri, 5 Feb 2016 22:13:51 +0100 Subject: Cycles: Auto disable World MIS, if we only use a simple color. When World MIS is enabled by the user, we now check if we actually need it. In case of a simple node setup (no procedurals, no HDRs..) we auto disable MIS internally to save render time. This change is important for upcoming default changes. --- intern/cycles/render/shader.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'intern/cycles/render/shader.cpp') diff --git a/intern/cycles/render/shader.cpp b/intern/cycles/render/shader.cpp index 6852d3f0608..0b3509fa1b1 100644 --- a/intern/cycles/render/shader.cpp +++ b/intern/cycles/render/shader.cpp @@ -152,6 +152,7 @@ Shader::Shader() has_volume = false; has_displacement = false; has_bssrdf_bump = false; + has_surface_spatial_varying = false; has_volume_spatial_varying = false; has_object_dependency = false; has_integrator_dependency = false; -- cgit v1.2.3