screen blur helper class

This commit is contained in:
minjaesong
2024-11-23 21:17:16 +09:00
parent d460447331
commit f5846d9bae
6 changed files with 161 additions and 162 deletions

View File

@@ -95,7 +95,7 @@ class UIFakeBlurOverlay(val blurRadius: Float, val nodarken: Boolean) : UICanvas
batchDrawCol.a = openness
batch.color = batchDrawCol
if (App.getConfigBoolean("fx_backgroundblur")) {
Toolkit.blurEntireScreen(batch, camera as OrthographicCamera, blurRadius * openness, 0, 0, width, height)
Toolkit.blurEntireScreen(batch, blurRadius * openness, 0, 0, width, height)
}
if (!nodarken) {