Fix Multi and Screen blending methods (Fix black nameplate when gold dan title)
This commit is contained in:
parent
c1cd89053d
commit
911a99126c
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user