godotengine / godot

Godot Engine – Multi-platform 2D and 3D game engine
https://godotengine.org
MIT License
89.43k stars 20.25k forks source link

Procedural Sky Ground Color Bug #38849

Open Dr-Primary opened 4 years ago

Dr-Primary commented 4 years ago

Godot version: Godot Engine v3.2.stable.mono.official OS/device including version: OS Name: Microsoft Windows 10 Home Version: 10.0.18363 Build 18363 Issue description: procedural sky object breaks and no longer renders. Steps to reproduce: I am using a C# script that gets the world environments procedural sky object and then changes the color values in its GroundBottomColor. If I change this color immediately upon entering the scene (in the ready function) it seems to break the object and I get a black sky. If I wait a brief amount of time before attempting to change it then the code works fine. Minimal reproduction project: Spatial Directional Light <- script attached WorldEnvironment WorldEnvironment.sky = Procedural Sky

Calinou commented 4 years ago

@Dr-Primary Please follow the issue template when reporting bugs, so that we can know which Godot version the bug can be reproduced with.

madmiraal commented 4 years ago

@Dr-Primary Please upload a minimal reproduction project which includes the script and shows the issue that you're reporting.