diff --git a/sandbox/tests/test scenes/bsdf/metalbrdf/ref/01 - metalbrdf.png b/sandbox/tests/test scenes/bsdf/metalbrdf/ref/01 - metalbrdf.png index db989b2fa1..0a416dae35 100644 Binary files a/sandbox/tests/test scenes/bsdf/metalbrdf/ref/01 - metalbrdf.png and b/sandbox/tests/test scenes/bsdf/metalbrdf/ref/01 - metalbrdf.png differ diff --git a/sandbox/tests/test scenes/light tracing/ref/28 - cornell box with spheres - with caustics.png b/sandbox/tests/test scenes/light tracing/ref/28 - cornell box with spheres - with caustics.png index 1ea965a118..0137dae492 100644 Binary files a/sandbox/tests/test scenes/light tracing/ref/28 - cornell box with spheres - with caustics.png and b/sandbox/tests/test scenes/light tracing/ref/28 - cornell box with spheres - with caustics.png differ diff --git a/sandbox/tests/test scenes/sppm/ref/02 - cornell box with spheres.png b/sandbox/tests/test scenes/sppm/ref/02 - cornell box with spheres.png index d10b9bcb45..e78e96477a 100644 Binary files a/sandbox/tests/test scenes/sppm/ref/02 - cornell box with spheres.png and b/sandbox/tests/test scenes/sppm/ref/02 - cornell box with spheres.png differ diff --git a/src/appleseed/renderer/modeling/bsdf/specularbtdf.cpp b/src/appleseed/renderer/modeling/bsdf/specularbtdf.cpp index 61a1239eb1..ee9a8e4667 100644 --- a/src/appleseed/renderer/modeling/bsdf/specularbtdf.cpp +++ b/src/appleseed/renderer/modeling/bsdf/specularbtdf.cpp @@ -185,6 +185,12 @@ namespace } } + if (!cosine_mult) + { + const float cos_in = abs(dot(incoming, shading_normal)); + sample.m_value.m_glossy /= cos_in; + } + sample.m_value.m_beauty = sample.m_value.m_glossy; // The probability density of the sampled direction is the Dirac delta. diff --git a/src/appleseed/renderer/modeling/project/projectfilewriter.cpp b/src/appleseed/renderer/modeling/project/projectfilewriter.cpp index eeb62a559f..ddf09cdd23 100644 --- a/src/appleseed/renderer/modeling/project/projectfilewriter.cpp +++ b/src/appleseed/renderer/modeling/project/projectfilewriter.cpp @@ -1008,6 +1008,7 @@ bool ProjectFileWriter::write_packed_project_file( { RENDERER_LOG_INFO("packing project to %s...", filepath); zip(filepath, temp_directory.string()); + RENDERER_LOG_INFO("packed project to %s...", filepath); } } catch (const std::exception&)