I’ve been modifying the BP_Sky_Sphere to add a moon and some other adjustments. The one thing I can’t for the life of me figure out how to adjust is when Sunrise and Sunset happen. IE when you rotate the Directional light, Sunrise and Sunset happen within specific rotation values and I’ve added my own code to adjust that rotation to be controlled by a Time of Day parameter based on a 24 hour period. Sunrise happens between 01:00 and 06:00 and Sunset starts at around 16:00 and 23:00. This means that Sunrise takes 5 hours to complete but Sunset takes 7. Ultimately, I’d like to be able to adjust both the time of the Sunrise/Sunset and the duration. I think this has to do with the Color curves in the Skysphere, but I’m not sure how to adjust them properly.
Here’s my code for TOD:
Oh, and I’m not using the new atmosphere system because I actually think it looks worse than the old sky sphere.



