Atmo Light direction vector not updating when particle is rotated via world position offset.

Hi Everyone,

I’m trying to make an impostor that’s shaded with a 2d raymarch height map. I’ve got a raymarch setup complete and I’m feeding into it an atmospheric light vector hooked up to a transfrom to get it from world space to tangent space. This updates the direction when I rotate the billboard. However when the plane gets rotated via world position offset the light doesn’t update.

Here’s an example of what I’m seeing: Screen capture - a2019cf3242038b668356a34066fd94b - Gyazo

half of the time the light is appearing correctly but when the plane rotates the light direction becomes inverted.

My material setup is mainly me using the out of the box functions for ray height and impostor movement.