Version: 2023.2
言語: 日本語
public MotionVectorGenerationMode motionMode ;

説明

Specifies how to generate motion vectors in this draw range.

This corresponds to Renderer.motionVectorGenerationMode. If you set this to MotionVectorGenerationMode.Camera, Unity doesn't render the draw commands in per-object motion vector passes, regardless of each draw command's BatchDrawCommand.flags. If you set this to MotionVectorGenerationMode.Object, Unity renders the draw commands in per-object motion vector passes if the draw command has BatchDrawCommandFlags.HasMotion set. If you set this to MotionVectorGenerationMode.ForceNoMotion, Unity renders the draw commands in per-object motion vector passes if the draw command has BatchDrawCommandFlags.HasMotion set, and it should output a zero motion vector. This behavior relies on the used shader being implemented correctly.