+ AxisHelper
~ Transformation can now set to be ignored. (Sending a Identity, when requested) ~ Changed how Meshes store Attributes
This commit is contained in:
parent
0895c600cf
commit
2e7051d800
14 changed files with 146 additions and 30 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue