Clean up and progress on buttons.

This commit is contained in:
2019-03-05 21:42:28 -06:00
parent d346f7c729
commit e19f6be719
5 changed files with 9 additions and 10 deletions

View File

@@ -43,11 +43,6 @@ namespace RecrownedAthenaeum.Camera
/// </summary>
public Matrix projectionMatrix;
/// <summary>
/// The final transformation matrix.
/// </summary>
public Matrix TransformationMatrix { get; private set; }
/// <summary>
/// The graphics device used
/// </summary>
@@ -74,6 +69,7 @@ namespace RecrownedAthenaeum.Camera
BasicEffect = new BasicEffect(graphicsDevice);
BasicEffect.TextureEnabled = true;
BasicEffect.VertexColorEnabled = true;
Apply();
}
@@ -83,7 +79,6 @@ namespace RecrownedAthenaeum.Camera
public virtual void Apply()
{
ViewMatrix = Matrix.CreateLookAt(position, lookAt, upDirection);
TransformationMatrix = projectionMatrix * ViewMatrix * worldMatrix;
BasicEffect.World = worldMatrix;
BasicEffect.View = ViewMatrix;