Skip to content

Commit ec1e35b

Browse files
authored
Update open_pbr_surface.mtlx
added a comment to avoid undos Signed-off-by: krohmerNV <42233792+krohmerNV@users.noreply.github.com>
1 parent d98a192 commit ec1e35b

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

libraries/bxdf/open_pbr_surface.mtlx

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -409,6 +409,11 @@
409409
<input name="thinfilm_thickness" type="float" nodename="thin_film_thickness_nm" />
410410
<input name="thinfilm_ior" type="float" interfacename="thin_film_ior" />
411411
</dielectric_bsdf>
412+
413+
<!--
414+
Explicitly using 'mix(layer(bsdf1, bsdf3), layer(bsdf2, bsdf3), weight)' instead of 'layer(mix(bsdf1, bsdf2, weight), bsdf3)' to overcome code gen limitations.
415+
Both expressions are semantically equivalent.
416+
-->
412417
<layer name="dielectric_base_tf" type="BSDF">
413418
<input name="top" type="BSDF" nodename="dielectric_reflection_tf" />
414419
<input name="base" type="BSDF" nodename="dielectric_substrate" />
@@ -422,6 +427,7 @@
422427
<input name="bg" type="BSDF" nodename="dielectric_base_notf" />
423428
<input name="mix" type="float" interfacename="thin_film_weight" />
424429
</mix>
430+
425431
<!-- Metal Layer -->
426432
<multiply name="metal_reflectivity" type="color3">
427433
<input name="in1" type="color3" interfacename="base_color" />

0 commit comments

Comments
 (0)