+ render pipeline system for more control about the renderering. + Log system + Framebuffer system ~ Default shader was moved to pipelines.
32 lines
No EOL
692 B
C#
32 lines
No EOL
692 B
C#
using SM.Base.Contexts;
|
|
using SM.Base.Scene;
|
|
using SM.OGL.Mesh;
|
|
using SM2D.Scene;
|
|
using SM2D.Types;
|
|
|
|
namespace SM2D.Drawing
|
|
{
|
|
public class DrawComplex: DrawingBasis<Transformation>, I2DShowItem
|
|
{
|
|
public int ZIndex { get; set; }
|
|
|
|
public Material Material
|
|
{
|
|
get => _material;
|
|
set => _material = value;
|
|
}
|
|
|
|
public GenericMesh Mesh
|
|
{
|
|
get => _mesh;
|
|
set => _mesh = value;
|
|
}
|
|
|
|
protected override void DrawContext(ref DrawContext context)
|
|
{
|
|
context.Instances[0].ModelMatrix = Transform.GetMatrix();
|
|
|
|
context.Shader.Draw(context);
|
|
}
|
|
}
|
|
} |