Zeplin.DrawQueue.ComputeParallax C# (CSharp) Method

ComputeParallax() private method

Returns the parallax matrix if rendering to the screen (drawing to layer), or a 1,1 parallax factor matrix if drawing to another image.
private ComputeParallax ( RenderTarget2D destination, Vector2 parallax ) : Matrix
destination Microsoft.Xna.Framework.Graphics.RenderTarget2D
parallax Vector2
return Matrix
        Matrix ComputeParallax(RenderTarget2D destination, Vector2 parallax)
        {
            if (destination == null)
                return Engine.Camera.ComputeViewMatrix(parallax);
            else
                return Engine.Camera.ComputeViewMatrix(Vector2.One);
        }