lightmap blurring simplified

This commit is contained in:
minjaesong
2021-12-12 20:39:12 +09:00
parent 5fb3e0b6b4
commit b7f7558192
9 changed files with 56 additions and 72 deletions

View File

@@ -298,17 +298,17 @@ object Toolkit : Disposable {
fboBlur = FloatFrameBuffer(
fw,
fh,
true
false
)
fboBlurHalf = FloatFrameBuffer(
fw / 2,
fh / 2,
true
false
)
fboBlurQuarter = FloatFrameBuffer(
fw / 4,
fh / 4,
true
false
)
blurWriteQuad.setVertices(floatArrayOf(

View File

@@ -36,7 +36,7 @@ class UIItemSpinner(
override val height = 24
private val buttonW = 30
private val fbo = FrameBuffer(Pixmap.Format.RGBA8888, width - 2*buttonW - 6, height - 4, true)
private val fbo = FrameBuffer(Pixmap.Format.RGBA8888, width - 2*buttonW - 6, height - 4, false)
var value = initialValue.coerceIn(min, max)
private var fboUpdateLatch = true

View File

@@ -99,7 +99,7 @@ class UIItemTextLineInput(
Pixmap.Format.RGBA8888,
width - 2 * UI_TEXT_MARGIN - 2 * (WIDTH_ONEBUTTON + 3),
height - 2 * UI_TEXT_MARGIN,
true
false
)
var isActive: Boolean = false // keep it false by default!
@@ -283,7 +283,7 @@ class UIItemTextLineInput(
else if (keycodes.containsSome(Input.Keys.ENTER, Input.Keys.NUMPAD_ENTER)) {
endComposing()
println("END COMPOSING!!")
// println("END COMPOSING!!")
}
// accept:
// - literal "<"

View File

@@ -44,7 +44,7 @@ class UIItemTextSelector(
override val height = 24
private val buttonW = 30
private val fbo = FrameBuffer(Pixmap.Format.RGBA8888, width - 2*buttonW - 6, height - 4, true)
private val fbo = FrameBuffer(Pixmap.Format.RGBA8888, width - 2*buttonW - 6, height - 4, false)
var selection = initialSelection
private var fboUpdateLatch = true