Using World Bounding box in shader ?

   958   0   1
User Avatar
Member
44 posts
Joined: March 2023
Offline
Hello, I have a situation where I have stuff instanced on other stuff and I need to get a gradient from 0 to 1 in my shader.

I can use wordpos for this, but the problem is that if I move my prop up, it doesn't fix anything.
Being able to access the World bounding box from inside my shader or would allow me to get around it.

Does anyone know how I can access these or similar values ?
THX in advance.
  • Quick Links