Search Unity

Vertex Offset Ambient Occlusion issue

Discussion in 'Image Effects' started by Cactus_on_Fire, Jul 7, 2018.

  1. Cactus_on_Fire

    Cactus_on_Fire

    Joined:
    Aug 12, 2014
    Posts:
    675
    When I try to use ambient occlusion with forward rendering, everything that uses vertex offset in the shader causes issues because ambient occlusion uses the depth/normals map that's rendered at the beginning where the vertex offset isn't applied.

    How can I make the ambient occlusion in forward rendering use the correct depth/normals where all the vertex offset is calculated and rendered correctly?
     
  2. Cactus_on_Fire

    Cactus_on_Fire

    Joined:
    Aug 12, 2014
    Posts:
    675