mirror of
https://github.com/curioustorvald/Terrarum.git
synced 2026-06-12 03:24:06 +09:00
dat blur
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user