Skip to content

Commit

Permalink
Coat layer should affect emission in USD translation (AcademySoftware…
Browse files Browse the repository at this point in the history
…Foundation#2087)

The standard_surface coat parameters are currently affecting the baseColor of UsdPreviewSurface. It should also affect emission color.
  • Loading branch information
JGamache-autodesk authored Oct 29, 2024
1 parent 593e175 commit 7af264b
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion libraries/bxdf/translation/standard_surface_to_usd.mtlx
Original file line number Diff line number Diff line change
Expand Up @@ -80,10 +80,14 @@
</dot>

<!-- Emissive -->
<multiply name="emissiveColor" type="color3">
<multiply name="scaledEmissionColor" type="color3">
<input name="in1" type="color3" interfacename="emission_color" />
<input name="in2" type="float" interfacename="emission" />
</multiply>
<multiply name="emissiveColor" type="color3">
<input name="in1" type="color3" nodename="scaledEmissionColor" />
<input name="in2" type="color3" nodename="coatAttenuation" />
</multiply>

<!-- Opacity -->
<convert name="opacityVector" type="vector3">
Expand Down

0 comments on commit 7af264b

Please sign in to comment.