Function readDepth

  • Read-back the normalized device coordinates from a depth texture

    Parameters

    • depthTexture: Texture
    • renderer: WebGLRenderer
    • camera: PerspectiveCamera
    • Optionalidx: number

    Returns Promise<null | number | number[]>