DepthTextureMode
Depth texture generation mode for Camera.
Read time 1 minuteLast updated 4 days ago
Definition
- Type: Enum
- Namespace: UnityEngine
- Assembly: UnityEngine.CoreModule
[Flags]public enum DepthTextureMode
Remarks
The flags can be combined, so you can set a Camera to generate any combination of: Depth, Depth+Normals, and MotionVector textures if needed.
Additional Resources: Using camera's depth textures, Camera.depthTextureMode.
Fields
Value | Description |
|---|---|
| Depth | Generate a depth texture. |
| DepthNormals | Generate a depth + normals texture. |
| MotionVectors | Specifies whether motion vectors should be rendered (if possible). |
| None | Do not generate depth texture (Default). |