BAKING SOLAR DATA LAYER - PROCEDURAL BIOMES

solar.zip (24.9 MB)
Did a line cast from the calculator down to the terrain to get starting points.
Then basically did a line trace between the sun position and the current point on the ground. If blocked it will draw a dark red pixel if not it draws a light red pixel.

From the line trace I also measure the distance and use a clamped remap function to get a dark or light green depending on distance.

I then write these value to the texture for every sample point.

It’s not perfect but it might be a good starting point.

For the straight up altitude you would probably need to do a line trace directly from above the terrain and then subtract the resulting distance from the beginning trace start / endpoint distance. (now I just measure the distance from the sun)

Edit: scene is in map1

1 Like