The following scripts dynamically update the fog, precipitation, and environment map settings used by the Dark Engine's renderer.
Parameter | Type | Description | Default value |
---|---|---|---|
transition | time | length of transition between states | 0 (instantaneous) |
curve | string | shape of curve to interpolate values along | linear |
The fog and weather scripts can provide smooth transitions between the old and new values. The transition
parameter specifies the length of the transition. If that parameter is undefined or set to 0
, the transition will be instantaneous. The curve
parameter specifies the shape of the interpolated curve, from among the values below. (t is the progress of the transition in the range [0.0, 1.0], while α is the multiplier used to interpolate between the starting and ending values at that time.)
linear
quadratic
radical
log_10
pow_10
log_e
pow_e
The usual trap control flags, locking, and timing (before the start of the transition, not its length) are also respected by these scripts.
This documentation is part of the KDScript module. Copyright © 2012–2014 Kevin Daughtridge. See introduction for details.