Example #1
0
        protected override void OnEnable()
        {
            base.OnEnable();
            switch (motionVectorState)
            {
            case MotionVectorState.Static:
                drawFunction = () => PipelineFunction.DrawNoMotionVectors(ref buffers, proceduralMat);
                break;

            case MotionVectorState.DynamicWithMotionVector:
                drawFunction = () =>
                {
                    PipelineFunction.SetLastFrameMatrix(ref buffers, ref lastVPMatrix);
                    //Add Movement Operations here
                    PipelineFunction.Draw(ref buffers, proceduralMat);
                };
                break;

            case MotionVectorState.DynamicWithoutMotionVector:
                //Add Movement Operations here
                drawFunction = () => PipelineFunction.DrawNoMotionVectors(ref buffers, proceduralMat);
                break;
            }
        }