Attempted at fixing 2D camera system.

This commit is contained in:
2019-02-24 22:44:02 -06:00
parent 5f04dfd73a
commit 051f3b04b5
9 changed files with 41 additions and 18 deletions

View File

@@ -48,7 +48,7 @@ namespace RecrownedAthenaeum.UI.Modular
if (scissorBounds != null)
{
batch.End();
batch.Begin(SpriteSortMode.Deferred, null, null, null, scissorRasterizer, null, camera?.TransformationMatrix);
batch.Begin(effect: camera?.BasicEffect);
scissorBounds.Width = bounds.Width;
scissorBounds.Height = bounds.Height;
scissorBounds.X = bounds.X;
@@ -72,7 +72,7 @@ namespace RecrownedAthenaeum.UI.Modular
{
batch.GraphicsDevice.ScissorRectangle = scissorBounds;
batch.End();
batch.Begin(SpriteSortMode.Deferred, null, null, null, null, null, camera?.TransformationMatrix);
batch.Begin(effect: camera?.BasicEffect);
}
}