Function setDepthPrePassStencil

  • Internal

    Sets up all the needed stencil logic needed for the depth pre-pass.

    Parameters

    • depthMesh: Mesh<BufferGeometry, Material | Material[]>

      Mesh created by createDepthPrePassMesh.

    • colorMesh: Mesh<BufferGeometry, Material | Material[]>

      Original mesh.

    Returns void

    Remarks

    This logic is in place to avoid z-fighting artifacts that can appear in geometries that have coplanar triangles inside the same mesh.

Generated using TypeDoc