more descriptive name for the blend-normal function because why there are two fucking standards for an alpha channel

This commit is contained in:
minjaesong
2022-10-31 01:52:40 +09:00
parent ccef7c32a0
commit 474279aefe
42 changed files with 122 additions and 108 deletions

View File

@@ -359,7 +359,7 @@ class BasicDebugInfoWindow : UICanvas() {
Toolkit.fillArea(batch, bar_x, bar_y, bar_w, -bar_h)
}
}
blendNormal(batch)
blendNormalStraightAlpha(batch)
}
private fun drawGamepadAxis(gamepad: TerrarumController, batch: SpriteBatch, axisX: Float, axisY: Float, uiX: Int, uiY: Int) {
@@ -375,10 +375,10 @@ class BasicDebugInfoWindow : UICanvas() {
val deadzone = App.gamepadDeadzone
blendNormal(batch)
blendNormalStraightAlpha(batch)
batch.end()
gdxSetBlendNormal()
gdxBlendNormalStraightAlpha()
Terrarum.inShapeRenderer {
it.color = uiColour
it.rect(uiX.toFloat(), App.scr.height - uiY.toFloat(), w, -h)