additive mat
This commit is contained in:
parent
d15cb8e093
commit
b0414df2d1
1 changed files with 5 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue