depth

 

Tag: depth
Parent tag: renderTarget
Attributes:

  • name (string) – the name for the texture depth attachment.
  • internalFormat (enum) – the format of the depth texture. Possible values are {DEPTH_COMPONENT16, DEPTH_COMPONENT24, DEPTH_COMPONENT32F}.

Child tags (none)

Using this tag in a render target results in the creation of a depth texture with the render target parameters. The texture is used as the depth attachment in the render target and can later be used in a material.

Example:

<depth name="shadowMap" internalFormat="DEPTH_COMPONENT32F"  />