diff --git a/src/net/torvald/terrarum/modulebasegame/IngameRenderer.kt b/src/net/torvald/terrarum/modulebasegame/IngameRenderer.kt index 2112c8532..b33d7b585 100644 --- a/src/net/torvald/terrarum/modulebasegame/IngameRenderer.kt +++ b/src/net/torvald/terrarum/modulebasegame/IngameRenderer.kt @@ -423,16 +423,7 @@ object IngameRenderer : Disposable { // processBlur(lightmapFboA, lightmapFboB) processKawaseBlur(lightmapFboB) - - /*lightmapFboB.inAction(camera, batch) { - val texture = LightmapRenderer.draw() - texture.bind(0) - - shaderPassthru.bind() - shaderPassthru.setUniformMatrix("u_projTrans", camera.combined) - shaderPassthru.setUniformi("u_texture", 0) - blurWriteQuad.render(shaderPassthru, GL20.GL_TRIANGLES) - }*/ +// processNoBlur() blendNormal(batch) @@ -736,6 +727,18 @@ object IngameRenderer : Disposable { } } + fun processNoBlur() { + lightmapFboB.inAction(camera, batch) { + val texture = LightmapRenderer.draw() + texture.bind(0) + + shaderPassthru.bind() + shaderPassthru.setUniformMatrix("u_projTrans", camera.combined) + shaderPassthru.setUniformi("u_texture", 0) + blurWriteQuad.render(shaderPassthru, GL20.GL_TRIANGLES) + } + } + fun processBlur(lightmapFboA: FrameBuffer, lightmapFboB: FrameBuffer) { var blurWriteBuffer = lightmapFboA var blurReadBuffer = lightmapFboB