Search Unity

Can I get a depth texture after ForwardOpaque pass, if I don't render a depth pass?

Discussion in 'General Graphics' started by Alan-Liu, Jan 12, 2017.

  1. Alan-Liu

    Alan-Liu

    Joined:
    Jan 23, 2014
    Posts:
    391
    I don't want to render a depth pass for performance reason, but I need a depth texture to render some effects. Is there a way to generate a depth texture from the depth buffer filled in ForwardOpaque pass?
     
  2. bgolus

    bgolus

    Joined:
    Dec 7, 2012
    Posts:
    12,342
  3. Alan-Liu

    Alan-Liu

    Joined:
    Jan 23, 2014
    Posts:
    391
    Thank you for replying. I just looked at Roadmap, Scriptable Render Loop is under Research, so I can't use it for my project.
     
  4. bgolus

    bgolus

    Joined:
    Dec 7, 2012
    Posts:
    12,342
    Yep, and 5.6 is still in (very early) Beta too. So, sadly, there's no way to do what you want in the current version of Unity.