PhysicalAddons / physical-starlight-and-atmosphere

issue tracker
16 stars 2 forks source link

Zero division errors in settings #2

Closed martinsh closed 4 years ago

martinsh commented 4 years ago

error occurs when atmosphere height is 0.0

karlisup commented 4 years ago

When the sun was below the horizon function was trying to calculate sun-related variables which were getting close to infinity and error was thrown. Sun radiance min value increased to 0.01 to avoid division by a zero.