The SkyMaterial
turns black before sunrise and after sunset (when inclination=0.5/-0.5
). In reality, the sky begins to lighten before sunrise, and remains lit after sunset. Is there a way to achieve this effect?
PG: https://playground.babylonjs.com/#PBXXVC#1
I’m afraid it’s how the material works and that we won’t be able to change it… I don’t know who wrote it in the first place, cc @Deltakosh / @sebavan just in case.
Hey @alekop !
The sky material was initially a port of an existing material and I remember that the code was pretty difficult to get.
I can see that the port on Three.JS doesn’t have this feature: three.js webgl - shaders - sky sun shader
BUT, I can give a try !
I remember facing this on one of my very first project using BJS. The ‘snowball’ demo. I had to implement a ‘special’ for night and sunset/sunrise transition. Would be great if we could have a full night/day cycle (eventually also with the moon ). I don’t have use of it at the moment so I’m not gonna push for it. Especially considering that this might take more effort than just a 10 minutes job. But you feel like it… I won’t say no