DescriptionI forgot one important case in the get_light_side function - some closures receive light from both sides simultaneously (like hair).
This patch makes the 4 cases explicit:
None: surface doesn't need eval
Front: surface is sensitive to light on the same side as the viewer
Back: surface is sensitive to light on the opposite side of the viewer
Both: surface is sensitive to light on both sides
This fixes backlighting on hair - previously only eval_reflect was being called because get_light_side was filtering out lights coming from behind.
Patch Set 1 #
MessagesTotal messages: 11
|