• Public
  • Public/Protected
  • All

Interface IIOptionShadowDepthMaterial

Options to be used when creating a shadow depth material


  • IIOptionShadowDepthMaterial



Optional remappedVariablesSearch playground for remappedVariables

remappedVariables: string[]

Variables in the vertex shader code that need to have their names remapped. The format is: ["var_name", "var_remapped_name", "var_name", "var_remapped_name", ...] "var_name" should be either: worldPos or vNormalW So, if the variable holding the world position in your vertex shader is not named worldPos, you must tell the system the name to use instead by using: ["worldPos", "myWorldPosVar"] assuming the variable is named myWorldPosVar in your code. If the normal must also be remapped: ["worldPos", "myWorldPosVar", "vNormalW", "myWorldNormal"]

Optional standaloneSearch playground for standalone

standalone: boolean

Set standalone to true if the base material wrapped by ShadowDepthMaterial is not used for a regular object but for depth shadow generation only


  • Constructor
  • Property
  • Method
  • Property
  • Method
  • Inherited property
  • Inherited method
  • Static property
  • Static method