+ AxisHelper

~ Transformation can now set to be ignored. (Sending a Identity, when requested)
~ Changed how Meshes store Attributes
This commit is contained in:
Michel Fedde 2020-12-13 13:03:57 +01:00
parent 0895c600cf
commit 2e7051d800
14 changed files with 146 additions and 30 deletions

View file

@ -11,6 +11,8 @@ namespace SM.Base.Drawing
/// </summary>
public abstract class GenericTransformation
{
public bool Ignore = false;
/// <summary>
/// Contains the current model matrix.
/// </summary>
@ -27,6 +29,8 @@ namespace SM.Base.Drawing
/// <returns></returns>
public Matrix4 GetMatrix()
{
if (Ignore) return Matrix4.Identity;
if (_lastFrame != SMRenderer.CurrentFrame)
{
_lastFrame = SMRenderer.CurrentFrame;