Is this supported? I go through all the steps to making a dynamic material instance for my directional light light function material (using it to simulate cloud shadows) so that I can change density, panning speed, etc. for weather cycle stuff. But none of it seems to be working.
I was able to solve this problem by assigning the same light function material to a box with no collisions that isn’t rendered at runtime, and then creating a dynamic material instance from that, setting a material instance dynamic variable, and then using THAT to set my directional light’s light function material using the set light function material node. It’s a dumb workaround, but it doesn’t work any other way.
2 Likes
You saved my ***! Thanks for this!
1 Like
Coming from 2024, I was looking for a solution for this and your answer saved my life, thanks buddy!
1 Like