Get foliage instance mesh position

Is there a way to get position of foliage instance in material editor? There are per instance data in the HLSL shader, but I can’t find a way to use them in the material editor.

I’m interested in this too, it would be good to have custom distance based mipmaps.

I have found out that object position expression gives you instance position if you use it in vertex shader (vertex offset input). Still, I think there is no way of acquiring that information when using base color input.

You can use Vertex interpolator node:

2 Likes