I’ve set up some foliage including grass and trees with a directional wind shader. It all works splendidly until I try to use procedural methods for tree placement. On the left side of the screenshot I hand placed the trees and on the right they were placed procedurally.
My theory is that it is an issue with instancing on the foliage tool/spawner. My shader uses the object position for calculation, and may not be returning position per instance. Not 100% on it though, nor do I have any ideas on how to resolve the issue.
It is only when using foliage painting or a foliage spawner that this issue occurs. They look correct when I place them by hand.
Disabling the shader does kind of solve the issue. Except it gets rid of the directional wind. Which is kind of a bummer.
I think the pivot point/object position may be the issue, but only for procedurally placed instances.
Which is where I get lost. I don’t understand what the difference is between a foliage painted instance and a hand place one in terms of object position.