additive mat

This commit is contained in:
ethan merchant 2024-12-21 09:39:58 -05:00
parent d15cb8e093
commit b0414df2d1

View file

@ -9,6 +9,7 @@ static class Arts
static Dictionary<string, Mesh> meshes = new();
static Material mat_mono = new Material("mono.hlsl");
static Material mat_unlit = new Material("unlit.hlsl");
static Material mat_add = new Material("unlit.hlsl");
static Material mat_both = new Material("unlit.hlsl");
static Material mat_backface = new Material("backface.hlsl");
static Material mat_justcolor = new Material("justcolor.hlsl");
@ -57,6 +58,10 @@ static class Arts
Color.White
);
mat_add.Transparency = Transparency.Add;
mat_add.DepthTest = DepthTest.LessOrEq;
mat_add.DepthWrite = false;
mat_backface.FaceCull = Cull.Front;
mat_backface.Transparency = Transparency.Add;
mat_backface.DepthTest = DepthTest.LessOrEq;