world depth texture provider as occlusion mask

Hi,

I'd like to use the world depth texture as an occluder and I'm wondering what's the correct way to set that up. I've tried this in the material editor but I know theres something I'm missing:

image

Thanks,

Sava

Answers

  • Sava
    Sava Posts: 3

    I managed to get it working with some code from the depth materials example: