akej74 / hdri-sun-aligner

Blender addon for aligning an object (e.g. a sun) to match the brightest part in a HDRI environment
GNU General Public License v3.0
118 stars 14 forks source link

take account mapping node rotation #2

Open beezaen opened 4 years ago

beezaen commented 4 years ago

The addon doesn't take account the rotation value of the mapping node is what I found through experimentation. The sun's position seems to be calculated using the value irrespective of the mapping node, and therefore the sun after instantiating using the 'add sun' button in the addon has to be rotated through the values in the mapping node.

akej74 commented 4 years ago

You are right, let me fix this for the next update.