~ Changed Pipelines

(Default2DPipeline: Has Lights, Post-ProcessingEffects, etc.)
(Basic2DPipeline: Simple Color and Texture stuff, thats it)
This commit is contained in:
Michel Fedde 2020-12-19 18:31:44 +01:00
parent 1ed03fec3f
commit 5d4b360b05
23 changed files with 243 additions and 59 deletions

View file

@ -16,6 +16,8 @@ namespace SM2D.Drawing
{
public int ZIndex { get; set; }
public bool ShadowCaster = false;
public Texture Texture
{
get => (Texture) _material.Texture;
@ -31,6 +33,7 @@ namespace SM2D.Drawing
protected override void DrawContext(ref DrawContext context)
{
base.DrawContext(ref context);
context.ShaderArguments["occluder"] = ShadowCaster;
context.Shader.Draw(context);
}
@ -64,5 +67,6 @@ namespace SM2D.Drawing
_mesh = pol;
return pol;
}
}
}