curioustorvald / Terrarum

Modular game engine for a side-scrolling tilemap platformer, and a game that runs on top of it
Other
13 stars 0 forks source link

Skybox colour is different when UI is opened #25

Closed curioustorvald closed 5 years ago

curioustorvald commented 5 years ago

Skybox is rendered much brighter when Consolewindow or Inventory is opened. No parametres for the shader is being changed. (parallax, colour, proj mat)

curioustorvald commented 5 years ago

Fixed; must be a blend mode shenanigan. I put the gdxSetBlendNormal() right before the skyboxfill render.

curioustorvald commented 5 years ago

Skybox on the titlescreen and the ingame is different; titlescreen one is the brighter one (when UI is opened)

curioustorvald commented 5 years ago

different_skybox_between_gamemods

curioustorvald commented 5 years ago

Please check: is this a height difference? (referred as "parallax" in the code)

curioustorvald commented 5 years ago

different_skybox_between_gamemods_2 Answer: they look exactly the same.

Closing the issue: the difference is because the weathermixer returns different parallax values for two game mods: Think of the camera's Y position for the Ingame/Titlescreen.