API

Class ShadowDepthWrapper

Class that can be used to wrap a base material to generate accurate shadows when using custom vertex/fragment code in the base material

Index
  • Specifies that the submesh is ready to be used for depth rendering

    Parameters

    • subMesh: SubMesh

      submesh to check

    • defines: string[]

      the list of defines to take into account when checking the effect

    • shadowGenerator: ShadowGenerator

      combined with subMesh, it defines the effect to check

    • useInstances: boolean

      specifies that instances should be used

    • passIdForDrawWrapper: number

      Id of the pass for which the draw wrapper should be created

    Returns boolean

    a boolean indicating that the submesh is ready or not