basic primitive batch progress.

This commit is contained in:
2019-01-11 22:09:42 -06:00
parent 74a9ff74b2
commit ec62b81a12
5 changed files with 123 additions and 6 deletions

View File

@@ -33,7 +33,7 @@ namespace RecrownedAthenaeum.UI.Modular
if (scissorBounds != null)
{
batch.End();
batch.Begin(SpriteSortMode.Deferred, null, null, null, scissorRasterizer, null, Camera?.TransformMatrix);
batch.Begin(SpriteSortMode.Deferred, null, null, null, scissorRasterizer, null, Camera?.Matrix);
scissorBounds.Width = bounds.Width;
scissorBounds.Height = bounds.Height;
scissorBounds.X = bounds.X;
@@ -57,7 +57,7 @@ namespace RecrownedAthenaeum.UI.Modular
{
batch.GraphicsDevice.ScissorRectangle = scissorBounds;
batch.End();
batch.Begin(SpriteSortMode.Deferred, null, null, null, null, null, Camera?.TransformMatrix);
batch.Begin(SpriteSortMode.Deferred, null, null, null, null, null, Camera?.Matrix);
}
}