Skip to content
View in the app

A better way to browse. Learn more.

The AVSIM Community

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Sky Colors...

Featured Replies

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.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.