Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.

Resolved How can I get back faces in the depth buffer Built-In?

Discussion in 'General Graphics' started by ignarmezh, Nov 19, 2022.

  1. ignarmezh

    ignarmezh

    Joined:
    Mar 23, 2017
    Posts:
    33
    I can get the depth buffer with front faces by reading _CameraDepthTexture. But how I can render objects with back faces culling and write it into custom buffer?
     
  2. ignarmezh

    ignarmezh

    Joined:
    Mar 23, 2017
    Posts:
    33
    I found the answer, we can do it with second camera and camera.
    RenderWithShader() method.