Skip to content

Commit

Permalink
Fix bug with emission under coat in Standard Surface.
Browse files Browse the repository at this point in the history
  • Loading branch information
niklasharrysson committed Sep 15, 2023
1 parent 46a5b50 commit 5de7637
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions libraries/bxdf/standard_surface.mtlx
Original file line number Diff line number Diff line change
Expand Up @@ -386,6 +386,10 @@
<input name="in1" type="float" nodename="coat_ior_to_F0_sqrt" />
<input name="in2" type="float" nodename="coat_ior_to_F0_sqrt" />
</multiply>
<subtract name="one_minus_coat_ior_to_F0" type="float">
<input name="in1" type="float" value="1.0" />
<input name="in2" type="float" nodename="coat_ior_to_F0" />
</subtract>
<multiply name="emission_weight" type="color3">
<input name="in1" type="color3" interfacename="emission_color" />
<input name="in2" type="float" interfacename="emission" />
Expand All @@ -398,8 +402,8 @@
<input name="in2" type="color3" interfacename="coat_color" />
</multiply>
<generalized_schlick_edf name="coat_emission_edf" type="EDF">
<input name="color0" type="color3" value="1.0, 1.0, 1.0" />
<input name="color90" type="color3" nodename="coat_ior_to_F0" channels="rrr" />
<input name="color0" type="color3" nodename="one_minus_coat_ior_to_F0" channels="rrr" />
<input name="color90" type="color3" value="0.0, 0.0, 0.0" />
<input name="exponent" type="float" value="5.0" />
<input name="base" type="EDF" nodename="coat_tinted_emission_edf" />
</generalized_schlick_edf>
Expand Down

0 comments on commit 5de7637

Please sign in to comment.