27.09.2020
~ Moved Default-Shader to 2D to provied 2D-specific feature ~ Fixed UVs in Polygon
This commit is contained in:
parent
617a7ef044
commit
2aa12f8d25
19 changed files with 166 additions and 83 deletions
21
SMCode/SM.Base/Utility/Deltatime.cs
Normal file
21
SMCode/SM.Base/Utility/Deltatime.cs
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
namespace SM.Utility
|
||||
{
|
||||
public class Deltatime
|
||||
{
|
||||
public static float UpdateDelta { get; internal set; }
|
||||
public static float RenderDelta { get; internal set; }
|
||||
|
||||
public bool UseRender;
|
||||
public float Scale;
|
||||
|
||||
public float DeltaTime => (UseRender ? RenderDelta : UpdateDelta) * Scale;
|
||||
|
||||
public Deltatime(float scale = 1, bool useRender = false)
|
||||
{
|
||||
UseRender = useRender;
|
||||
Scale = scale;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue