ShadowMapPass

Shadow map pass.

Constructor

new ShadowMapPass()

Members

getDepthMaterial :function

Get depth material function. Override this to use custom depth material.

Type:
  • function

getDistanceMaterial :function

Get distance material function. Override this to use custom distance material.

Type:
  • function

getGeometry :null|function

Get geometry function for shadow render options.

Type:
  • null | function

ifRender :function

The if render function for shadow render options.

Type:
  • function

shadowLayers :null|Array

Define which render layers will produce shadows. If the value is Null, it means that all render layers will produce shadows.

Type:
  • null | Array
Default Value
  • null

transparentShadow :boolean

Whether transparent objects can cast shadows.

Type:
  • boolean
Default Value
  • false

Methods

render(renderer, scene)

Render shadow map.

Parameters:
NameTypeDescription
rendererThinRenderer
sceneScene