Skip to content

Commit

Permalink
Enable diffuse energy compensation (#201)
Browse files Browse the repository at this point in the history
This changelist adds the `energy_compensation` setting to `oren_nayar_diffuse_bsdf` in the reference implementation for OpenPBR, leveraging the upcoming support for this feature in MaterialX 1.39.

In recent MaterialX TSC meetings, we've aligned on this naming convention for the new energy compensation feature in oren_nayar_diffuse_bsdf, and it now seems safe to move forward with this setting in OpenPBR v1.0.
  • Loading branch information
jstone-lucasfilm authored May 23, 2024
1 parent ae070be commit a5daf05
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions reference/open_pbr_surface.mtlx
Original file line number Diff line number Diff line change
Expand Up @@ -201,6 +201,7 @@
<input name="color" type="color3" nodename="base_color_nonnegative" />
<input name="roughness" type="float" interfacename="base_diffuse_roughness" />
<input name="normal" type="vector3" interfacename="geometry_normal" />
<input name="energy_compensation" type="boolean" value="true" />
</oren_nayar_diffuse_bsdf>
<convert name="subsurface_selector" type="float">
<input name="in" type="boolean" interfacename="geometry_thin_walled" />
Expand Down

0 comments on commit a5daf05

Please sign in to comment.