Page MenuHome

Fix T58953: Lamp data not always set
ClosedPublic

Authored by Jeroen Bakker (jbakker) on Mar 5 2019, 11:24 AM.

Details

Summary

The Lamp data was not always set. When using CUDA or CPU it was, but when using OpenCL
without OBJECT_MOTION sd->lamp not updated to the actual lamp. This made the
TextureCoordinate output the wrong normal when used in a light shader.

As the normal was incorrect it made the IES node render incorrectly.
(what is the default for the IES node).

By setting the lamp data when no __OBJECT_MOTION__ compile directive is present makes
sure that the normal is correctly calculated.

Diff Detail

Repository
rB Blender
Branch
master
Build Status
Buildable 3049
Build 3049: arc lint + arc unit