Function calculateDepthFromClipDistance

  • Parameters

    • clipDistance: number

      Distance from the camera in clip space (range: [0, 1]).

    • camera: Camera

      Camera applying the perspective projection.

    Returns number

    Deprecated

    Translates a linear clip-space distance value to the actual value stored in the depth buffer. This is useful as the depth values are not stored in the depth buffer linearly, and this can lead into confusing behavior when not taken into account.

Generated using TypeDoc