rain megaparticle experiment

This commit is contained in:
minjaesong
2017-12-18 20:45:32 +09:00
parent 3936d381d2
commit f8568899d9
16 changed files with 286 additions and 69 deletions

View File

@@ -168,7 +168,7 @@ object LoadScreen : ScreenAdapter() {
it.color = Color.WHITE
Terrarum.fontGame.draw(it, textToPrint, (textFbo.width - textWidth) / 2f + 0.33f, 0f) // x 0.33? I dunno but it breaks w/o it
Terrarum.fontGame.draw(it, textToPrint, ((textFbo.width - textWidth) / 2).toInt().toFloat(), 0f)
blendMul()
@@ -188,6 +188,14 @@ object LoadScreen : ScreenAdapter() {
it.projectionMatrix = camera.combined
blendNormal()
// almost black background
it.color = Color(0x181818ff)
it.fillRect(0f, 0f, Terrarum.WIDTH.toFloat(), Terrarum.HEIGHT.toFloat())
it.color = Color.WHITE
// draw text FBO to screen
val textTex = textFbo.colorBufferTexture
textTex.setFilter(Texture.TextureFilter.Linear, Texture.TextureFilter.Linear)