krzmig / godot-simple-sky-project

A simple Godot 4 project with day-night and season systems, a procedurally moving sun and moon, and a stylized sky shader.
MIT License
83 stars 4 forks source link

Shadows #2

Closed pavanvo closed 1 year ago

pavanvo commented 1 year ago

Faced with the problem that the shadows are not displayed.

I was trying to implement a simple sun clock.

The shadows enabled but light energy is turns to 0 when I run the AnimationPlayer, I also was trying to run with 1 - shadows also not works image

Here DirectionalLight3D with shadows enabled image

pavanvo commented 1 year ago

Oh, I finnaly got it, need to setup Light and Sky mode for sun and moon, and raise light energy from 0 image

krzmig commented 1 year ago

Hi, I noticed this as I was working with this sky for my game. I set the lights wrong and it often set the strength of the lights to 0. I will try to correct this soon.

krzmig commented 1 year ago

I added parameters to set the strength of the light in the main scene, because with dynamic picking, it can pick up the wrong values, depending on what time you start. It can, for example, download for the sun a power of 0, if you run at night. obraz Sky mode restored to default.