Function createDepthPrePassMaterial

  • Internal

    Creates material for depth prepass.

    Parameters

    • baseMaterial: Material

      The base material of mesh that is updated to work with depth prepass and then used. This parameter is a template for depth prepass material that is returned.

    Returns THREE.Material

    depth prepass material, which is a clone of baseMaterial with the adapted settings.

    Remarks

    Creates material that writes only to the z-buffer. Updates the original material instance, to support depth prepass.

Generated using TypeDoc