Quick Links
Overview
- Built directly into IW3xo and fully tweakable via the in-game GUI :: Pixel Shader :: Day Night Cycle
- Filmtweak, Suntweak and Fogtweak lerping
- 3 Time of Day states to lerp between
- Config saving and loading
- Sky shader based on: https://github.com/lyubean/Godot-Sky-Clouds-shader-asset :: (MIT License)
Night example:
Usage:
- Grab the latest IW3xo Release
- Load up a map and use Devgui->DayNight to enable the day and night cycle
- Tweak to your heart’s content
GUI Settings In-Depth:
General Settings
|-> Enable Time of Day Lerping :: Enable lerping between time of day states.
|-> Enable Auto Sun Rotation :: Automatically rotate the sun. Disable for manual mode using Sun Direction.
|-> Sun Direction :: r_lightTweakSunDirection (X) - position of the sun and thus, the lighting state.
|-> Day Length Scalar :: General day length scalar.
|-> Day Speed Scalar :: Speed up / Slow down daytime.
|-> Night Speed Scalar :: Speed up / Slow down nighttime.
Cloud Settings (not all)
|-> Skydome Scale :: Cloud sphere size
|-> Cloud Coverage :: Amount of clouds
|-> Cloud Step Distance XZ :: Distance scalar at which to draw "half-resolution" clouds
Time of Day Settings
|-> Film Interpolation Speed :: Time it takes to lerp to current filmtweak settings
|-> Sun Interpolation Speed :: Time it takes to lerp to current lighttweak settings
|-> Tweak Fog :: Use custom fog settings for this state (uses default map settings otherwise)
Config files are saved and loaded from:
root/iw3xo/daynight
Go completely crazy if you want: