From c98fccc4065fae377badf7b1a24b4b8c94c640ae Mon Sep 17 00:00:00 2001 From: Ben McGraw Date: Sun, 4 Oct 2015 18:06:36 -0700 Subject: [PATCH] Fix off-by-.5 error --- Squared/RenderLib/Content/BitmapCommon.fxh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Squared/RenderLib/Content/BitmapCommon.fxh b/Squared/RenderLib/Content/BitmapCommon.fxh index b6d4eb389..983592584 100644 --- a/Squared/RenderLib/Content/BitmapCommon.fxh +++ b/Squared/RenderLib/Content/BitmapCommon.fxh @@ -106,7 +106,7 @@ void ScreenSpaceVertexShader( position.xy += rotatedCorner; - result = TransformPosition(float4(position.xy, position.z, 1), 0.5); + result = TransformPosition(float4(position.xy, position.z, 1), 0.0); } void WorldSpaceVertexShader( @@ -129,5 +129,5 @@ void WorldSpaceVertexShader( position.xy += rotatedCorner - ViewportPosition; - result = TransformPosition(float4(position.xy * ViewportScale, position.z, 1), 0.5); + result = TransformPosition(float4(position.xy * ViewportScale, position.z, 1), 0.0); }