This commit is contained in:
minjaesong
2021-09-09 16:39:29 +09:00
parent 94a97193f9
commit 1a0c48987d
4 changed files with 84 additions and 16 deletions

View File

@@ -607,9 +607,6 @@ object IngameRenderer : Disposable {
}
fun processBlur(lightmapFboA: FrameBuffer, lightmapFboB: FrameBuffer) {
val blurIterations = 5 // ideally, 4 * radius; must be even/odd number -- odd/even number will flip the image
val blurRadius = 4f / lightmapDownsample // (5, 4f); using low numbers for pixel-y aesthetics
var blurWriteBuffer = lightmapFboA
var blurReadBuffer = lightmapFboB
@@ -629,7 +626,9 @@ object IngameRenderer : Disposable {
}
// do blurring
for (i in 0 until blurIterations) {
for (i in 0 until 4) {
val blurRadius = (4f / lightmapDownsample) * (1 shl i.ushr(1))
blurWriteBuffer.inAction(camera, batch) {
blurTex.texture = blurReadBuffer.colorBufferTexture

View File

@@ -99,6 +99,8 @@ open class UIRemoCon(val parent: TitleScreen, treeRepresentation: QNDTreeNode<St
currentRemoConContents = currentRemoConContents.parent!!
currentlySelectedRemoConItem = currentRemoConContents.data
remoConTray = generateNewRemoCon(currentRemoConContents)
parent.uiFakeBlurOverlay.setAsClose()
}
else {
throw NullPointerException("No parent node to return")
@@ -143,7 +145,6 @@ open class UIRemoCon(val parent: TitleScreen, treeRepresentation: QNDTreeNode<St
}
else {
it.second.setAsClose()
parent.uiFakeBlurOverlay.setAsClose()
}
}
}