Capítulo 219 de 859

Chapter 219: CubeDepthTexture

Core Idea

This class can be used to automatically save the depth information of a cube rendering into a cube texture with depth format. Used for PointLight shadows.

Key Concepts

  • images : Array.<Image>: Alias for CubeDepthTexture#image.
  • isCubeDepthTexture : boolean (readonly): This flag can be used for type testing.
  • isCubeTexture : boolean (readonly): Set to true for cube texture handling in WebGLTextures.

Reference Tables

Constructor

Signature
new CubeDepthTexture( size : number, type : number, mapping : number, wrapS : number, wrapT : number, magFilter : number, minFilter : number, anisotropy : number, format : number )

Properties

PropertyDescription
.images : Array.<Image>Alias for CubeDepthTexture#image.
.isCubeDepthTexture : boolean (readonly)This flag can be used for type testing.
.isCubeTexture : boolean (readonly)Set to true for cube texture handling in WebGLTextures.

Key Takeaways

  1. CubeDepthTexture extends: EventDispatcher → Texture → DepthTexture
  2. Most relevant properties: images, isCubeDepthTexture, isCubeTexture.

Connects To