mirror of
https://github.com/curioustorvald/Terrarum.git
synced 2026-06-11 02:54:04 +09:00
derp
This commit is contained in:
@@ -423,16 +423,7 @@ object IngameRenderer : Disposable {
|
|||||||
|
|
||||||
// processBlur(lightmapFboA, lightmapFboB)
|
// processBlur(lightmapFboA, lightmapFboB)
|
||||||
processKawaseBlur(lightmapFboB)
|
processKawaseBlur(lightmapFboB)
|
||||||
|
// 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)
|
|
||||||
}*/
|
|
||||||
|
|
||||||
|
|
||||||
blendNormal(batch)
|
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) {
|
fun processBlur(lightmapFboA: FrameBuffer, lightmapFboB: FrameBuffer) {
|
||||||
var blurWriteBuffer = lightmapFboA
|
var blurWriteBuffer = lightmapFboA
|
||||||
var blurReadBuffer = lightmapFboB
|
var blurReadBuffer = lightmapFboB
|
||||||
|
|||||||
Reference in New Issue
Block a user