Ejemplo n.º 1
0
 public override void Create()
 {
     name = "Motion";
     m_MotionVectorRenderPass = new MotionVectorRenderPass();
     m_MotionBlurRenderPass   = new MotionBlurRenderPass();
     m_MotionDatas            = new Dictionary <Camera, MotionData>();
 }
Ejemplo n.º 2
0
 internal MotionRendererFeature()
 {
     // Set data
     s_Instance = this;
     m_MotionVectorRenderPass = new MotionVectorRenderPass();
     m_MotionBlurRenderPass   = new MotionBlurRenderPass();
     m_MotionDatas            = new Dictionary <Camera, MotionData>();
 }
Ejemplo n.º 3
0
 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";
 }