we've got something

- except actor's RGB won't draw; only the glow does
This commit is contained in:
minjaesong
2017-09-18 02:32:47 +09:00
parent 558430b4f3
commit e76458bff6
4 changed files with 43 additions and 26 deletions

View File

@@ -1,5 +1,6 @@
package net.torvald.terrarum.weather
import com.badlogic.gdx.Gdx
import com.badlogic.gdx.Input
import com.badlogic.gdx.graphics.*
import javafx.scene.effect.Light
@@ -138,6 +139,10 @@ object WeatherMixer {
Terrarum.shaderBayerSkyboxFill.setUniformf("parallax_size", 1f/3f)
Terrarum.fullscreenQuad.render(Terrarum.shaderBayerSkyboxFill, GL20.GL_TRIANGLES)
Terrarum.shaderBayerSkyboxFill.end()
Gdx.gl.glActiveTexture(GL20.GL_TEXTURE0) // don't know why it is needed; it really depresses me
}
fun Float.clampOne() = if (this > 1) 1f else this