DefaultLightShareScript

From OpenSimulator

(Difference between revisions)
Jump to: navigation, search
(Added corrected script from Meta7 for OpenSim 0.7)
 
m (added back link)
Line 62: Line 62:
  
 
'''Note:''' I'll add a few correspondences between those settings and what WindLight actually saves as XML soon.
 
'''Note:''' I'll add a few correspondences between those settings and what WindLight actually saves as XML soon.
 +
 +
----
 +
 +
[[LightShare|Back to the LightShare main page]]

Revision as of 07:48, 28 August 2010

Drop the following script inside a prim and it should change everything to the usual "normal" defaults.

default
{
    state_entry()
    {
        lsSetWindlightScene([
            WL_WATER_COLOR, <4,38,64>,
            WL_WATER_FOG_DENSITY_EXPONENT, 4.0,
            WL_UNDERWATER_FOG_MODIFIER, 0.25,
 
            WL_REFLECTION_WAVELET_SCALE, <2.0,2.0,2.0>,
            WL_FRESNEL_SCALE, 0.40,
            WL_FRESNEL_OFFSET, 0.50,
 
            WL_REFRACT_SCALE_ABOVE, 0.03,
            WL_REFRACT_SCALE_BELOW, 0.20,
            WL_BLUR_MULTIPLIER, 0.040,
 
            WL_BIG_WAVE_DIRECTION, <1.05,-0.42,0>,
            WL_LITTLE_WAVE_DIRECTION, <1.11,-1.16,0>,
 
            WL_NORMAL_MAP_TEXTURE, "822ded49-9a6c-f61c-cb89-6df54f42cdf4",
 
            WL_HORIZON, <0.25,0.25,0.32,0.32>,
            WL_HAZE_HORIZON, 0.19,
 
 
            WL_BLUE_DENSITY, <0.12,0.22,0.38,0.38>,
            WL_HAZE_DENSITY, 0.70,
 
            WL_DENSITY_MULTIPLIER, 0.18,
            WL_DISTANCE_MULTIPLIER, 0.8,
            WL_MAX_ALTITUDE, 1605,
 
            WL_SUN_MOON_POSITION, 0.317,
            WL_SUN_MOON_COLOR, <0.24,0.26,0.30,0.30>,
            WL_AMBIENT, <0.35,0.35,0.35,0.35>,
            WL_EAST_ANGLE, 0.00,
 
            WL_SUN_GLOW_FOCUS, 0.10,
            WL_SUN_GLOW_SIZE, 1.75,
            WL_SCENE_GAMMA, 1.00,
            WL_STAR_BRIGHTNESS, 0.00,
 
            WL_CLOUD_COLOR, <0.41,0.41,0.41,0.41>,
            WL_CLOUD_XY_DENSITY, <1.00,0.53,1.0>,
 
            WL_CLOUD_COVERAGE, 0.27,
            WL_CLOUD_SCALE, 0.42,
            WL_CLOUD_DETAIL_XY_DENSITY, <1.00,0.53,0.12>,
 
            WL_CLOUD_SCROLL_X, 0.20,
            WL_CLOUD_SCROLL_Y, 0.01,
            WL_DRAW_CLASSIC_CLOUDS, TRUE,
            WL_CLOUD_SCROLL_X_LOCK, FALSE,
            WL_CLOUD_SCROLL_Y_LOCK, FALSE
 
        ]);
    }
}

Note: I'll add a few correspondences between those settings and what WindLight actually saves as XML soon.


Back to the LightShare main page

Personal tools
General
About This Wiki