mirror of
https://github.com/curioustorvald/Terrarum.git
synced 2026-06-11 02:54:04 +09:00
serialisation of HRQNG is fixed so it would not make illegal reflective access on Java 17
This commit is contained in:
@@ -402,9 +402,10 @@ object IngameRenderer : Disposable {
|
||||
Gdx.gl.glDisable(GL20.GL_BLEND)
|
||||
}
|
||||
|
||||
// processBlur(lightmapFboA, lightmapFboB)
|
||||
processKawaseBlur(lightmapFbo)
|
||||
// processNoBlur()
|
||||
if (KeyToggler.isOn(Input.Keys.F5))
|
||||
processNoBlur(lightmapFbo)
|
||||
else
|
||||
processKawaseBlur(lightmapFbo)
|
||||
|
||||
|
||||
blendNormal(batch)
|
||||
@@ -668,6 +669,22 @@ object IngameRenderer : Disposable {
|
||||
|
||||
private const val KAWASE_POWER = 1.5f
|
||||
|
||||
fun processNoBlur(outFbo: FloatFrameBuffer) {
|
||||
|
||||
blurtex0.dispose()
|
||||
|
||||
|
||||
outFbo.inAction(camera, batch) {
|
||||
blurtex0 = LightmapRenderer.draw()
|
||||
blurtex0.setFilter(Texture.TextureFilter.Nearest, Texture.TextureFilter.Nearest)
|
||||
blurtex0.bind(0)
|
||||
App.shaderPassthruRGBA.bind()
|
||||
App.shaderPassthruRGBA.setUniformMatrix("u_projTrans", camera.combined)
|
||||
App.shaderPassthruRGBA.setUniformi("u_texture", 0)
|
||||
blurWriteQuad.render(App.shaderPassthruRGBA, GL20.GL_TRIANGLES)
|
||||
}
|
||||
}
|
||||
|
||||
fun processKawaseBlur(outFbo: FloatFrameBuffer) {
|
||||
|
||||
blurtex0.dispose()
|
||||
|
||||
Reference in New Issue
Block a user