1
0
mirror of synced 2024-11-27 17:00:50 +01:00

Fix Multi and Screen blending methods (Fix black nameplate when gold dan title)

This commit is contained in:
0auBSQ 2023-11-21 23:10:33 +09:00
parent c1cd89053d
commit 911a99126c

View File

@ -18,25 +18,25 @@ public static class BlendHelper
switch(blendType)
{
case BlendType.Normal:
Game.Gl.BlendEquation(BlendEquationModeEXT.FuncAdd);
Game.Gl.BlendFunc(GLEnum.SrcAlpha, GLEnum.OneMinusSrcAlpha);
break;
Game.Gl.BlendEquation(BlendEquationModeEXT.FuncAdd);
Game.Gl.BlendFunc(GLEnum.SrcAlpha, GLEnum.OneMinusSrcAlpha);
break;
case BlendType.Add:
Game.Gl.BlendEquation(BlendEquationModeEXT.FuncAdd);
Game.Gl.BlendFunc(GLEnum.SrcAlpha, GLEnum.One);
break;
Game.Gl.BlendEquation(BlendEquationModeEXT.FuncAdd);
Game.Gl.BlendFunc(GLEnum.SrcAlpha, GLEnum.One);
break;
case BlendType.Screen:
Game.Gl.BlendEquation(BlendEquationModeEXT.FuncAdd);
Game.Gl.BlendFunc(GLEnum.OneMinusDstColor, GLEnum.One);
break;
Game.Gl.BlendEquation(BlendEquationModeEXT.FuncAdd);
Game.Gl.BlendFunc(GLEnum.One, GLEnum.OneMinusSrcColor);
break;
case BlendType.Multi:
Game.Gl.BlendEquation(BlendEquationModeEXT.FuncAdd);
Game.Gl.BlendFunc(GLEnum.SrcAlpha, GLEnum.SrcColor);
break;
Game.Gl.BlendEquation(BlendEquationModeEXT.FuncAdd);
Game.Gl.BlendFunc(GLEnum.DstColor, GLEnum.OneMinusSrcAlpha);
break;
case BlendType.Sub:
Game.Gl.BlendEquation(BlendEquationModeEXT.FuncReverseSubtract);
Game.Gl.BlendFunc(GLEnum.SrcAlpha, GLEnum.One);
break;
Game.Gl.BlendEquation(BlendEquationModeEXT.FuncReverseSubtract);
Game.Gl.BlendFunc(GLEnum.SrcAlpha, GLEnum.One);
break;
}
}
}