public override void Create() { name = "Motion"; m_MotionVectorRenderPass = new MotionVectorRenderPass(); m_MotionBlurRenderPass = new MotionBlurRenderPass(); m_MotionDatas = new Dictionary <Camera, MotionData>(); }
internal MotionRendererFeature() { // Set data s_Instance = this; m_MotionVectorRenderPass = new MotionVectorRenderPass(); m_MotionBlurRenderPass = new MotionBlurRenderPass(); m_MotionDatas = new Dictionary <Camera, MotionData>(); }
public override void Create() { if (m_MotionVectorRenderPass == null) { m_MotionVectorRenderPass = new MotionVectorRenderPass(RenderPassEvent); } if (m_MotionBlurRenderPass == null) { m_MotionBlurRenderPass = new MotionBlurRenderPass(); } //This ends up forcing the name to 'Motion', you can never rename the feature //name = "Motion"; }