128 float red =
Math.
Lerp(0.0, currentColor[0] - 1.0, colorPower);
129 float green =
Math.
Lerp(0.0, currentColor[1] - 1.0, colorPower);
130 float blue =
Math.
Lerp(0.0, currentColor[2] - 1.0, colorPower);
PPOperators
PP operators, specify operation between subsequent layers.
static const int PARAM_SATURATION
static const int PARAM_COLORIZATIONCOLOR
static const int PARAM_CONTRAST
static const int PARAM_BRIGHTNESS
static const int L_20_SANDSTORM
Glow - PostProcessEffectType.Glow.
static const int L_0_SANDSTORM
static const int PARAM_INTENSITY
static const int PARAM_SUNVISIBLE
static const int PARAM_OVERBURNINTENSITY
GodRays - PostProcessEffectType.GodRays.
base, not to be used directly, would lead to layering collisions!
const float SANDSTORM_SATURATION_MAX
float GetSandstormBlend(float intensity)
const float SANDSTORM_CONTRAST_MIN
GLOW CONTRAST.
const float SANDSTORM_INTENSITY_MAX
const float SANDSTORM_GODRAYS_MIN
GODRAYS.
void OnStart(Param par=null)
void OnStop(Param par=null)
const float SANDSTORM_INTENSITY_MIN
static const float EFFECT_TRANSITION_SPEED
const float MAX_SANDSTORM_COLOR_ALPHA
const float MIN_SANDSTORM_COLOR_ALPHA
const float SANDSTORM_THRESHOLD_MIN
const float SANDSTORM_BRIGHTNESS_MIN
GLOW BRIGHTNESS.
static const float EFFECT_STEP_DELTA
bool ShouldUpdateEffect()
void SetTargetIntensity(float intensity)
const vector SANDSTORM_COLOR_HEAVY
float m_CurrentIntensity
Utility.
const float SANDSTORM_GODRAYS_MAX
vector m_SandstormColorLightHSV
const float SANDSTORM_GODRAYS_OVERBURN_MIN
vector m_SandstormColorHeavyHSV
const float SANDSTORM_GODRAYS_OVERBURN_MAX
const float SANDSTORM_INTENSITY_BLEND_POWER
const float SANDSTORM_CONTRAST_MAX
const float SANDSTORM_THRESHOLD_MAX
const float SANDSTORM_SUN_VISIBILITY_MAX
const float SANDSTORM_BRIGHTNESS_MAX
void ProcessEffect(float intensity)
const float SANDSTORM_SATURATION_MIN
GLOW SATURATION.
const vector SANDSTORM_COLOR_LIGHT
GLOW COLOR.
const float SANDSTORM_SUN_VISIBILITY_MIN
Base Param Class with no parameters. Used as general purpose parameter overloaded with Param1 to Para...
PostProcessEffectType
Post-process effect type.
static proto float Max(float x, float y)
Returns bigger of two given values.
static proto float Lerp(float a, float b, float time)
Linearly interpolates between 'a' and 'b' given 'time'.
static proto float Min(float x, float y)
Returns smaller of two given values.
static proto float Clamp(float value, float min, float max)
Clamps 'value' to 'min' if it is lower than 'min', or to 'max' if it is higher than 'max'.
static proto float InverseLerp(float a, float b, float value)
Calculates the linear value that produces the interpolant value within the range [a,...
static proto float Pow(float v, float power)
Return power of v ^ power.
static vector HSVToRGB(vector hsv)
static vector RGBToHSV(vector rgb)