mirror of
https://github.com/curioustorvald/Terrarum.git
synced 2026-06-15 04:54:05 +09:00
fake gradient background for menu buttons on titlescreen to increase contrast
This commit is contained in:
@@ -27,11 +27,10 @@ class UIFakeGradOverlay : UICanvas() {
|
||||
|
||||
override fun updateUI(delta: Float) {}
|
||||
override fun renderUI(batch: SpriteBatch, camera: Camera) {
|
||||
gdxSetBlendMul()
|
||||
blendMul(batch)
|
||||
batch.draw(tex, 0f, 0f, App.scr.halfwf * 1.5f, App.scr.hf)
|
||||
|
||||
batch.draw(tex, 0f, 0f, App.scr.wf, App.scr.hf)
|
||||
|
||||
gdxSetBlendNormal()
|
||||
blendNormal(batch)
|
||||
}
|
||||
|
||||
override fun doOpening(delta: Float) {}
|
||||
|
||||
Reference in New Issue
Block a user