Due to an off-by-one error the generated studio light icons did not show
the influence of the 4th light. This fix changes the loop to iterate
over all of the lights when computing the lighting.
Details
Details
Diff Detail
Diff Detail
- Repository
- rB Blender
- Branch
- fix-T83450-missing-studio-light (branched from master)
- Build Status
Buildable 12537 Build 12537: arc lint + arc unit
Event Timeline
Comment Actions
Is there a way we can make this not hard codes? If not, it should at lease be a constant.
Comment Actions
Well. A lot of things rely on the fact that there is a max of 4 lights. There is vector packing in shader for instance.
On the other hand you could use ARRAY_SIZE macro to get the correct length.