Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Question Unable to use Occlusion Manager people depth texture on custom Shadergraph shader

Discussion in 'AR' started by gabibobra, Jun 4, 2021.

  1. gabibobra

    gabibobra

    Joined:
    Aug 27, 2019
    Posts:
    1
    Hi, im working on a ar project using arfoundation and arkit. Basically i need to apply some filters (or texture or colors) on texture that ar occlusion manager and ar camera gives me. I'm using a big shader graph to apply this filters but the occlusion of objects in unity world doesnt work.

    I know that occlusion already work using occlusion manager and ar background camera but i cant combine the two textures(the occluded texture and my texture with custom shader).
    My idea is to make the occlusion directly on my custom shader but this is the first time im working with shaders and,i dont know how to convert a coded shader on a shader graph.

    I attached the coded occlusion shader that i found on some previous topics of occlusion. I want to convert this to a shader graph.

    If somebody have another idea how to combine the occlusion and the custom shader i'm open to hear and test.
     

    Attached Files: