DefaultLightShareScript

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

Conversions
Here are some conversions from the WindLight XML to the LightShare settings that I managed to figure out. The format is really pretty much insane.


 * ambient -> WL_AMBIENT (all four entries apply; apparently, you have to divide the first 3 entries by the 4th one, and include the 4th as is)
 * blue_density -> WL_BLUE_DENSITY (all four entries apply; apparently, you have to divide the first 3 entries by WL_DENSITY_MULTIPLIER and keep the 4th as is)
 * blue_horizon -> WL_HORIZON (all four entries apply; apparently, you have to divide the first 3 entries by WL_DENSITY_MULTIPLIER and keep the 4th as is)
 * cloud_color -> WL_CLOUD_COLOR (all four entries apply)
 * cloud_pos_density1 -> WL_CLOUD_XY_DENSITY (3rd entry becomes 1st; 2nd entry becomes 2nd entry; 4th entry becomes 3rd; 1st entry ignored)
 * cloud_pos_density2 -> WL_CLOUD_XY_DETAIL_DENSITY (3rd entry becomes 1st; 2nd entry becomes 2nd entry; 4th entry becomes 3rd; 1st entry ignored)
 * cloud_scale -> WL_CLOUD_SCALE (use just the first entry)
 * cloud_scroll_rate -> first entry goes to WL_CLOUD_SCROLL_X, second entry goes to WL_CLOUD_SCROLL_Y (unknown, the math doesn't make sense)
 * cloud_shadow -> WL_CLOUD_COVERAGE (use first entry)
 * density_multiplier -> WL_DENSITY_MULTIPLIER (use first entry multiplied by 1000)
 * distance_multiplier -> WL_DISTANCE_MULTIPLIER (use first entry)
 * east_angle -> WL_EAST_ANGLE
 * enable_cloud_scroll -> first entry goes to WL_CLOUD_SCROLL_X_LOCK, second entry to WL_CLOUD_SCROLL_Y_LOCK (0 becomes TRUE and 1 becomes FALSE)
 * gamma -> WL_SCENE_GAMMA (use first entry)
 * glow -> second entry to WL_SUN_GLOW_FOCUS (times 100), math for WL_SUN_GLOW_SIZE is unknown
 * haze_density -> WL_HAZE_DENSITY (use first entry)
 * haze_horizon -> WL_HAZE_HORIZON (use first entry; others ignored?)
 * lightnorm -> unsupported?
 * max_y -> WL_MAX_ALTITUDE (use first entry)
 * preset_num -> not used
 * star_brightness -> WL_STAR_BRIGHTNESS
 * sun_angle -> WL_SUN_MOON_POSITION (requires some weird, unknown math)
 * sunlight_color -> WL_SUN_MOON_COLOR (all four entries apply)

Back to the LightShare main page