Search Unity

LWRP _CameraDepthTexture problem

Discussion in 'Shaders' started by Ggz91, Nov 30, 2019.

  1. Ggz91

    Ggz91

    Joined:
    Nov 7, 2019
    Posts:
    1
    hello
    I'm trying to apply depth texture to the implementing of the performance of near shore foam. When I switch the platform to andriod, the performance of depth texture becomes bad. It seems that the update of depth texture is behind the update of color attachment. Like this:
    upload_2019-11-30_19-47-55.png
    The blue area which's pixels are supposed to be behind the objects represents the depth of scene's objects . When the objects moves, the blue area appears.
    Using LWRP, 2019.12, targeting mobile platforms. Shader works good in legacy RP and D3D api.
    Can someone help?