You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the problem or limitation you are having in your project
The Physical Sky starts turning orange as the sun approaches the horizon, but the light it gives out is still white
Describe the feature / enhancement and how it helps to overcome the problem or limitation
By using the same logic used to determine the Background Sun's color with Physical Sky, use the result to change the Light Color, for significantly more accurate lighting, for basically free.
Describe how your proposal will work, with code, pseudo-code, mock-ups, and/or diagrams
Unable to answer this well, as I don't understand how the Physical Sky works and how to link it with Directional Light's output Color.
On the UI side of things, it'd make sense to have an enum that is set to Auto detect by default, and has Physical and Constant light modes that it uses.
If Physical Sky is used Auto detect will switch to Physical, else keep Constant light.
If this enhancement will not be used often, can it be worked around with a few lines of script?
Yes, by adding a directional light to only be light, and one only for the sky, and changing the light color of the light, but that is not an easy task.
Is there a reason why this should be core and not an add-on in the asset library?
Rendering is Core.
The text was updated successfully, but these errors were encountered:
I think that in practice, you probably don't want to use the exact same color as the PhysicalSkyMaterial's sun for your DirectionalLight3D. It will probably look wrong in most cases.
If I understand the problem correctly. A custom gradient could be added, the value of which shifted depending on the position of the sun. In this way, lighting can be adjusted, from realistic to specific / stylized.
As per clayjohn's comment on the Godot Contributors Chat, now that #4257 has been implemented, you can adjust the DirectionalLight3D's color temperature depending on its angle. This should be easy to do in your day-night cycle script – no more Gradient resource is required.
Describe the project you are working on
Day Night Cycle
Describe the problem or limitation you are having in your project
The Physical Sky starts turning orange as the sun approaches the horizon, but the light it gives out is still white
Describe the feature / enhancement and how it helps to overcome the problem or limitation
By using the same logic used to determine the Background Sun's color with Physical Sky, use the result to change the Light Color, for significantly more accurate lighting, for basically free.
Describe how your proposal will work, with code, pseudo-code, mock-ups, and/or diagrams
Unable to answer this well, as I don't understand how the Physical Sky works and how to link it with Directional Light's output Color.
On the UI side of things, it'd make sense to have an enum that is set to Auto detect by default, and has Physical and Constant light modes that it uses.
If Physical Sky is used Auto detect will switch to Physical, else keep Constant light.
If this enhancement will not be used often, can it be worked around with a few lines of script?
Yes, by adding a directional light to only be light, and one only for the sky, and changing the light color of the light, but that is not an easy task.
Is there a reason why this should be core and not an add-on in the asset library?
Rendering is Core.
The text was updated successfully, but these errors were encountered: