04.10.2020
+ render pipeline system for more control about the renderering. + Log system + Framebuffer system ~ Default shader was moved to pipelines.
This commit is contained in:
parent
97e638d9d9
commit
820d6ce700
34 changed files with 660 additions and 106 deletions
|
|
@ -1,4 +1,5 @@
|
|||
using SM.Base.Contexts;
|
||||
using SM.Base;
|
||||
using SM.Base.Contexts;
|
||||
using SM.Base.Text;
|
||||
using SM.Base.Types;
|
||||
using SM2D.Scene;
|
||||
|
|
@ -14,15 +15,14 @@ namespace SM2D.Drawing
|
|||
Transform.Size = new CVector2(1);
|
||||
}
|
||||
|
||||
public override void Draw(DrawContext context)
|
||||
protected override void DrawContext(ref DrawContext context)
|
||||
{
|
||||
base.Draw(context);
|
||||
base.DrawContext(ref context);
|
||||
context.Instances = _instances;
|
||||
ApplyContext(ref context);
|
||||
|
||||
context.View = Transform.GetMatrix() * context.View;
|
||||
|
||||
_material.Shader.Draw(context);
|
||||
context.Shader.Draw(context);
|
||||
}
|
||||
|
||||
public int ZIndex { get; set; }
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue