[Community Project] WIP Weather & Water Shader

@dazuk1978

I too haven’t been feeling well either and was unable to work in UE4 for a couple of days, so apologies for the delay…

I’ll reply to in more depth later on, but I think I know what is causing the Skylight. I switched the time interval from minutes to hours, meaning if you enter 10 into the SkylightCaptureInterval variable, it’s only going to update once every 10 hours. With both UseSkylight & UpdateSkylight set to true, try entering in 0.08 (5 minutes) and see if that fixes it.

If not, please open up the UpdateAtmosphere function in BP_Sky and make sure it looks like (I may have changed it post release, but does work):

The next update will be using custom logic to blend between multiple pre-captured skylight cubemaps, eliminating (and it’s performance hit). I upped the time speed to 500 to test it, there is noticeable hitching when it gets re-captured, so much that Physics simulation doesn’t run properly. If you look at the ships sails you will see they ‘reset’ every time a capture occurs.

The blending is for more than just the skylight, it will include everything from light intensity, to post processes, cloud color and much more. It’s based off the system in the Kite Demo from Epic, and seems to be working well already. Just need to integrate the skylight part, which I plan on doing today.

I’ll get back to you on the rest shortly, thanks! :slight_smile: