Skip to content

DepthTextureMode

DepthTextureMode is used to specify the mode for rendering depth texture in a camera. The depth texture is a 2D texture that contains depth information for each pixel in the scene, which is used for implementing depth-based effects, shadows, anti-aliasing, and other functionalities.

attributesdescription
NoneIndicates that the depth texture is not rendered.
DepthRepresents a rendering depth texture.
DepthNormalsRepresents a texture that stores depth and normal information. The normal texture is a 2D texture that contains the normal information for each pixel in the scene, used for implementing normal-based effects.
MotionVectorsRepresents a render texture for depth and motion vector rendering. The motion vector texture is a 2D texture that contains motion vector information for each pixel in the scene, used for motion vector-based effects.