Skip to content

Commit

Permalink
Fix attenuation of coated emission in MaterialX (#102)
Browse files Browse the repository at this point in the history
  • Loading branch information
portsmouth authored Sep 16, 2023
1 parent 5aad5aa commit a4397df
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions reference/open_pbr_surface.mtlx
Original file line number Diff line number Diff line change
Expand Up @@ -378,9 +378,13 @@
<input name="in1" type="EDF" nodename="emission_edf" />
<input name="in2" type="color3" interfacename="coat_color" />
</multiply>
<subtract name="one_minus_coat_F0" type="float">
<input name="in1" type="float" value="1.0" />
<input name="in2" type="float" nodename="coat_ior_to_F0" />
</subtract>
<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_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 a4397df

Please sign in to comment.