July 20, 20187 yr Here is my script. function cloud_lighting() --get sun position sun_pitch = get("sim/graphics/scenery/sun_pitch_degrees") --set daytime cloud lighting if sun_pitch > 3 then gain = 1 end --set dusk / dawn cloud lighting if sun_pitch <= 3 then gain = 1.16 end if sun_pitch <= 2.5 then gain = 1.32 end if sun_pitch <= 2 then gain = 1.50 end if sun_pitch <= 1.5 then gain = 1.66 end if sun_pitch <= 1 then gain = 1.82 end if sun_pitch <= 0.5 then gain = 2 end if sun_pitch <= 0 then gain = 2.16 end if sun_pitch <= -0.5 then gain = 2.32 end if sun_pitch <= -1 then gain = 2.50 end if sun_pitch <= -1.5 then gain = 2.66 end if sun_pitch <= -2 then gain = 2.82 end if sun_pitch <= -2.5 then gain = 3 end --night lighting if sun_pitch <= -4 then gain = 2.75 end if sun_pitch <= -4.5 then gain = 2.5 end if sun_pitch <= -5 then gain = 2.25 end if sun_pitch <= -5.5 then gain = 2 end --write cloud lighting set( "sim/private/controls/clouds/ambient_gain", gain) set( "sim/private/controls/clouds/diffuse_gain", gain) end do_often("cloud_lighting()") - Currently giving X-Plane 12.10 a spin on Shadow PC. 10 years with X-Plane now, since 10.20
Archived
This topic is now archived and is closed to further replies.