Skip to content

Commit

Permalink
Translation: Coat layer should affect emission
Browse files Browse the repository at this point in the history
The standard_surface coat parameters are currently affecting the
baseColor of UsdPreviewSurface. It should also affect emission color.
  • Loading branch information
JGamache-autodesk committed Oct 28, 2024
1 parent d18af70 commit 2368294
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 2368294

Please sign in to comment.