The foliage on my map can look a bit flat, due to the static materials being used.
I’d like to apply a noise texture to control the color desaturation based on object position. So that the grass would change it’s color base on it’s world position.
I’m not sure quite how one would achieve this in the material, although it clearly seems possible.
Here’s the basic nodes i’m trying to play around with, but am not having much luck:
I was hoping a more experience material dev could help give me some tips on how to achieve this.
And the result was really subtle, but if you looked closely you could see it. My example looked awful though because I didn’t have on normals or transmission color or specularity or anything. I think if you use that basic setup with a good tiling cloud texture, you should be able to get the look you want.
Thanks for the reply. I believe it’s the foliage clustering that’s causing the distortion of the grid of circles for me. As I change the clustering settings, it completely changes the pattern.
This is pretty disheartening as my foliage clustering settings have been fine-tuned for performance on my map.
I think that what happens it that all foliage in a single cluster use a single draw call, so they will all technically have the same coordinate.
May i ask what your foliage clustering settings you are using for the example you show above?
the cluster size doesn’t have any impact in the world position, and yes they are still in the same drawcall but they will not have the same coordinate because this is the absolute world position you’re using
please post your updated material, as your old one will clearly not work (you need to scale the world position by a factor, like Nathaniel showed)