Sun position calculator and Point Ligth BP

Hey @Ilas
You can do something like this inside the SunSky blueprint in the UpdateSun function:

This is a Math Expression with following equation:
(((pow((x - Noon), 2)) * LightTimeFactor) + MaxIntensity)
Which will generate a parabola like this for your intensity (Y=intensity, X=SolarTime):

The site for the graph: https://www.desmos.com/
The equation: -.5*(x-12)^2+20

And copy this to another folder in your project:
image

image

3 Likes