semagnum / light-painter

Blender add-on that creates lights based on where the user paints.
https://semagnum.github.io/light-painter/
GNU General Public License v3.0
310 stars 6 forks source link

Broken gobos in 4.0 #44

Closed semagnum closed 11 months ago

semagnum commented 11 months ago

In the release notes for 4.0:

Point light and spot light are changed to double-sided sphere lights (#108506 #109329). Besides, the light normal now points from light center to the sampled/intersected position on the sphere, any pipeline that was using the light normal should use the Incoming socket of the Geometry shader node instead.

So for 4.0+, the texture coordinate node with the normal socket needs to be shifted to the geometry node with its incoming socket. For backwards compatibility, use the IS_BPY_V3 check like in 4404194d93df5a2b61138982629e014cb2b085c4

semagnum commented 11 months ago

Fixed in adc8aac68b46082740d3e33b4ee8dfdd22bd6c0b