mirror of
https://github.com/curioustorvald/Terrarum.git
synced 2026-06-13 20:14:05 +09:00
orebfuscator impl
This commit is contained in:
@@ -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:
|
||||
/*
|
||||
|
||||
Reference in New Issue
Block a user