Devlogs
devlog - 2022-06-11 - v0.2.6
Todo
โ
โ ๐ก
Add
Change / Update
- Settings
- settings menu should write to json whenever you make a change, then alert the group SettingsDependant to call their update_settings() method which grabs the json file, reads whatever relevant data that node needs
Fixes
Refactors
- โ
~~Sun
- ~~Change sun to only increment time, since global illumination is not used, its doing extra calculations that are not necessary or used at all by the game, visually.
Lighting Issues
- lighting transitions set global lighting, which is the same as the natural lighting affected by day/night cycle.
- instead, we need another layer of abstraction in the sky controller that keeps a buffer for transition and natural lighting
- the transitions based on the sun should be stored in the naturalLighting buffer while transitions for entering specific areas such as building interiors should store their information in a transitionBuffer
- the method can take in a value to determine which buffer we are setting with the method call, but this method just stores the relevant information into the specified buffer, it doesn't transition between the buffers for the actual lighting.
- instead we can have a
transition_lighting(buffer)
that handles the apparent transition and updates which buffer is currently active
- an example would like like this:
- enter a building
- update the transition buffer to the interior lighting
- set the active buffer to transition
- meanwhile, the day night cycle will continue to update the natural buffer, but wont transition to it. the skybox will however continue to update
- exit the building
- we don't update the lighting in any buffers when exiting the building. we just set the active buffer back to natural and the manager handles the transition.