Skip to content

Commit 1d70e61

Browse files
Apply weight to the entire subsurface_bssdrf closure
1 parent d38cc7c commit 1d70e61

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
void mx_subsurface_bsdf(float weight, color albedo, color radius, float anisotropy, normal N, output BSDF bsdf)
22
{
33
#if OSL_VERSION_MAJOR >= 1 && OSL_VERSION_MINOR >= 14
4-
bsdf = subsurface_bssrdf(N, weight * albedo, radius, anisotropy);
4+
bsdf = weight * subsurface_bssrdf(N, albedo, radius, anisotropy);
55
#else
6-
bsdf = subsurface_bssrdf(N, weight * albedo, 1.0, radius, anisotropy);
6+
bsdf = weight* subsurface_bssrdf(N, albedo, 1.0, radius, anisotropy);
77
#endif
88
}

0 commit comments

Comments
 (0)