orebfuscator impl

This commit is contained in:
minjaesong
2023-10-02 01:35:32 +09:00
parent f78076fb28
commit 42ab13d114
3 changed files with 20 additions and 6 deletions

View File

@@ -528,14 +528,19 @@ object IngameRenderer : Disposable {
else
blendMul(batch)
batch.shader = shaderRGBOnly
batch.shader.setUniformi("rnd", rng.nextInt(8192), rng.nextInt(8192))
batch.shader.setUniformi("u_pattern", 1)
batch.draw(lightTex,
// if (!KeyToggler.isOn(Input.Keys.F9)) {
batch.shader = shaderRGBOnly
batch.shader.setUniformi("rnd", rng.nextInt(8192), rng.nextInt(8192))
batch.shader.setUniformi("u_pattern", 1)
batch.draw(
lightTex,
xrem, yrem,
lightTex.regionWidth * lightmapDownsample,
lightTex.regionHeight * lightmapDownsample
)
)
// }
// if right texture coord for lightTex and fboRGB are obtainable, you can try this:
/*