Skip to content

Commit 00473ce

Browse files
authored
fix: anisotropic_vdf closure should not set IOR (#1870)
The MaterialX team noticed this issue here: AcademySoftwareFoundation/MaterialX#2016 Basically, if you add a medium through the anisotropic_vdf closure, it should not force the ior back to 1.0 as this IOR might have been changed by one of the microfacet closures. The IOR already defaults to 1.0 so cases that do not involve a microfacet closure are not affected. Signed-off-by: Chris Kulla <[email protected]>
1 parent 78e5392 commit 00473ce

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

src/testrender/shading.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1653,8 +1653,6 @@ process_medium_closure(const OSL::ShaderGlobals& sg, ShadingResult& result,
16531653
result.sigma_t = cw * params.extinction;
16541654
result.sigma_s = params.albedo * result.sigma_t;
16551655
result.medium_g = params.anisotropy;
1656-
result.refraction_ior = 1.0f;
1657-
result.priority = 0; // TODO: should this closure have a priority?
16581656
break;
16591657
}
16601658
case MX_MEDIUM_VDF_ID: {

0 commit comments

Comments
 (0)