mirror of
https://github.com/curioustorvald/Terrarum.git
synced 2026-06-12 19:44:05 +09:00
dither on lighting and blurring, with an option to turn them off
This commit is contained in:
@@ -55,8 +55,6 @@ class UIFakeBlurOverlay(val blurRadius: Float, val nodarken: Boolean) : UICanvas
|
||||
|
||||
override var openCloseTime: Second = 0f
|
||||
|
||||
private val shaderBlur = App.loadShaderFromFile("assets/blur.vert", "assets/blur.frag")
|
||||
|
||||
private val darken = Color(0.5f, 0.5f, 0.5f, 1f)
|
||||
|
||||
override fun updateUI(delta: Float) {}
|
||||
@@ -79,6 +77,5 @@ class UIFakeBlurOverlay(val blurRadius: Float, val nodarken: Boolean) : UICanvas
|
||||
override fun endOpening(delta: Float) {}
|
||||
override fun endClosing(delta: Float) {}
|
||||
override fun dispose() {
|
||||
shaderBlur.dispose()
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user