Clean up and progress on buttons.
This commit is contained in:
@@ -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;
|
||||
|
Reference in New Issue
Block a user