Skip to content

Commit

Permalink
Ignore incandescence color in black-body mode
Browse files Browse the repository at this point in the history
  • Loading branch information
laurelkeys authored and dictoon committed Mar 24, 2020
1 parent 0b612e4 commit f0a5731
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/appleseed.shaders/src/appleseed/as_standard_surface.osl
Original file line number Diff line number Diff line change
Expand Up @@ -722,8 +722,9 @@ shader as_standard_surface
in_subsurface_weight == 0.0 || max(in_sss_mfp) <= in_sss_threshold)
? 0 : 1;

int compute_edf =
(in_incandescence_amount * max(in_incandescence_color) > 0.0) ? 1 : 0;
int compute_edf = (in_incandescence_type == 0)
? ((in_incandescence_amount * max(in_incandescence_color) > 0.0) ? 1 : 0)
: ((in_incandescence_amount > 0.0) ? 1 : 0);

// Specular first, to get the transmittance amount and bailout earlier.

Expand Down

0 comments on commit f0a5731

Please sign in to comment.