This commit is contained in:
minjaesong
2021-12-09 23:48:11 +09:00
parent 57b610ce4a
commit 5d18e37daa

View File

@@ -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