Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


Camera output

Techniques for outputting depth, depth-normal and motion vector textures from a camera.
Read time 1 minuteLast updated 13 days ago

Techniques for outputting depth, depth-normal and motion vector information from a camera.

Page

Description

Introduction to camera outputLearn about using the
DepthTextureMode
API to output a depth or motion texture from a camera.
Output a depth texture from a cameraOutput a texture with data about the object depth or surface normals in the camera view.
Output a motion vector texture from a cameraOutput a texture with data about object motion in the camera view.
Sample output textures in a shaderRead the data from a depth texture or a motion vector texture in custom shader code.
Troubleshooting camera outputSolve common issues with camera output, such as visual artefacts.

Additional resources