[Bf-blender-cvs] [9da994474eb] cycles-x: Cleanup: remove unnecessary clamp, is already done when initializing closure
Brecht Van Lommel
noreply at git.blender.org
Tue Sep 14 15:13:45 CEST 2021
Commit: 9da994474eb478d3d75edf92c120daf6ecd225e1
Author: Brecht Van Lommel
Date: Mon Sep 13 15:16:36 2021 +0200
Branches: cycles-x
https://developer.blender.org/rB9da994474eb478d3d75edf92c120daf6ecd225e1
Cleanup: remove unnecessary clamp, is already done when initializing closure
===================================================================
M intern/cycles/kernel/integrator/integrator_subsurface.h
===================================================================
diff --git a/intern/cycles/kernel/integrator/integrator_subsurface.h b/intern/cycles/kernel/integrator/integrator_subsurface.h
index 0f2b9225ce2..9490738404e 100644
--- a/intern/cycles/kernel/integrator/integrator_subsurface.h
+++ b/intern/cycles/kernel/integrator/integrator_subsurface.h
@@ -134,9 +134,6 @@ ccl_device void subsurface_shader_data_setup(INTEGRATOR_STATE_ARGS, ShaderData *
ccl_device void subsurface_random_walk_remap(
const float albedo, const float d, float g, float *sigma_t, float *alpha)
{
- /* Not well defined for negative anisotropy, just clamp for now. */
- g = fmaxf(g, 0.0f);
-
/* Compute attenuation and scattering coefficients from albedo. */
const float g2 = g * g;
const float g3 = g2 * g;
More information about the Bf-blender-cvs
mailing list