Search Unity

  1. We are migrating the Unity Forums to Unity Discussions by the end of July. Read our announcement for more information and let us know if you have any questions.
    Dismiss Notice
  2. Dismiss Notice

Question ZTest fail even shader ZTest value set to Always

Discussion in 'Shaders' started by joeysk4, Jun 7, 2024.

  1. joeysk4

    joeysk4

    Joined:
    Jan 23, 2018
    Posts:
    7
    The case is I tried to set the render target to a render texture, and rendered a whole screen pattern into that texture. This failed on android device with a gles3 backend(it works when I'm using vulkan).
    Here's the renderdoc capture results:
    drawcalls.png depth.png ztest.png depth.png drawcalls.png
    What could possibly be wrong here?