-
Notifications
You must be signed in to change notification settings - Fork 36
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Sky color #36
Conversation
Doesn't work for me. The sky stays blue in G1 and G2, no matter the world. It seems you forgot to commit the part where the |
Hmm, I remember amending that to the commit. I can't check what went wrong currently though. If you want, you can simply add the Sky component to the game world. Nothing else is required. |
When manually adding the component to the game world, the sky color does seem to change according to the time. Did you figure out what went wrong? |
c824bf4
to
f96f94a
Compare
c335a98
to
c6c5b15
Compare
Works. |
Ports some of the Sky-Logic from the old REGoth repository. This PR adds a component to the
GameWorld
, which calculates the sky color depending on the daytime using the Gothic 2 sky colors.To test this, one can modify
GameClock
from this:to
for 60 second days.
[WIP]: Color is not applied to any meshes now, only the clear color is modified.
Using an indoor-world like
OLDMINE.ZEN
works for testing, but you need to peek through the wall with your camera to see the effect.Also #35 should be merged first.