btex: partially working <btex />

This commit is contained in:
minjaesong
2024-05-02 20:18:23 +09:00
parent 8fe653d82f
commit de7aeee351
6 changed files with 226 additions and 82 deletions

View File

@@ -122,7 +122,7 @@ object TerrarumPostProcessor : Disposable {
if (App.scr.magn % 1.0 < 0.0001) Texture.TextureFilter.Nearest else Texture.TextureFilter.Linear
)
postShader(projMat, fbo)
drawFBOwithDither(projMat, fbo)
// draw things when F keys are on
if (App.IS_DEVELOPMENT_BUILD && KeyToggler.isOn(Input.Keys.F11)) {
@@ -243,7 +243,7 @@ object TerrarumPostProcessor : Disposable {
0f,0f,0f,1f, 0f,0f,1f,0f, 0f,1f,0f,0f, 1f,0f,0f,0f,
)
private fun postShader(projMat: Matrix4, fbo: FrameBuffer) {
private fun drawFBOwithDither(projMat: Matrix4, fbo: FrameBuffer) {
val shader = if (App.getConfigBoolean("fx_dither"))
shaderPostDither