Version: 2017.3

Renderer.motionVectorGenerationMode

切换到手册
public MotionVectorGenerationMode motionVectorGenerationMode ;

描述

指定运动矢量渲染的模式。

运动矢量跟踪从一帧到下一帧的每像素对象速度。使用该信息,您可以应用特定的图像效果,例如运动模糊或随机采样抗锯齿。

MotionVectorGenerationMode.Camera:仅使用摄像机移动来跟踪运动。 MotionVectorGenerationMode.Object:该对象将进行每对象运动矢量通道渲染。 MotionVectorGenerationMode.ForceNoMotion:该对象将进行零运动渲染。

另请参阅:DepthTextureMode.MotionVectorsSkinnedMeshRenderer.skinnedMotionVectorsPassType.MotionVectorsSystemInfo.supportsMotionVectors