Options
All
  • Public
  • Public/Protected
  • All
Menu

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

Hierarchy

  • ShadowDepthWrapper

Index

Constructors

constructor

  • Instantiate a new shadow depth wrapper. It works by injecting some specific code in the vertex/fragment shaders of the base material and is used by a shadow generator to generate the shadow depth map. For more information, please refer to the documentation: https://doc.babylonjs.com/babylon101/shadows

    Parameters

    Returns ShadowDepthWrapper

Accessors

baseMaterial

  • Gets the base material the wrapper is built upon

    Returns Material

standalone

  • get standalone(): boolean
  • Gets the standalone status of the wrapper

    Returns boolean

Methods

disposeSearch playground for dispose

  • dispose(): void
  • Disposes the resources

    Returns void

getEffectSearch playground for getEffect

  • Gets the effect to use to generate the depth map

    Parameters

    Returns Nullable<Effect>

    the effect to use to generate the depth map for the subMesh + shadow generator specified

isReadyForSubMeshSearch playground for isReadyForSubMesh

  • isReadyForSubMesh(subMesh: SubMesh, defines: string[], shadowGenerator: ShadowGenerator, useInstances: boolean): boolean
  • 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

    Returns boolean

    a boolean indicating that the submesh is ready or not

Legend

  • Constructor
  • Property
  • Method
  • Property
  • Method
  • Static method