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
|
|
@ -22,14 +22,11 @@ namespace SM2D.Drawing
|
|||
set => _mesh = value;
|
||||
}
|
||||
|
||||
public override void Draw(DrawContext context)
|
||||
protected override void DrawContext(ref DrawContext context)
|
||||
{
|
||||
base.Draw(context);
|
||||
ApplyContext(ref context);
|
||||
|
||||
context.Instances[0].ModelMatrix = Transform.GetMatrix();
|
||||
|
||||
_material.Shader.Draw(context);
|
||||
context.Shader.Draw(context);
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue