mirror of
https://github.com/curioustorvald/Terrarum.git
synced 2026-06-12 11:34:05 +09:00
lightmap blurring simplified
This commit is contained in:
@@ -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(
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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 "<"
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user