5 protected float m_AccumulatedTime = 0;
6 protected bool m_FadeIn =
false;
7 protected bool m_FadeOut =
false;
9 const float FADE_TIME = 3;
11 const float R_TARGET = 0.142;
12 const float G_TARGET = 0.15;
13 const float B_TARGET = 0.44;
19 m_AccumulatedTime = 0;
28 override protected void OnUpdate(
float delta )
30 super.OnUpdate( delta );
32 if ( m_FadeIn && m_AccumulatedTime <= FADE_TIME )
34 m_AccumulatedTime += delta;
45 if (m_AccumulatedTime <= FADE_TIME)
47 m_AccumulatedTime += delta;
68 if (par &&
Class.CastTo(p,par))
71 m_AccumulatedTime = 0;
80 output =
Math.Lerp(
x,
y, deltaT );
81 Easing.EaseInOutSine( output );
Super root of all classes in Enforce script.
Input value between 0 and 1, returns value adjusted by easing, no automatic clamping of input(do your...
FilmGrain - PostProcessEffectType.FilmGrain.
Glow - PostProcessEffectType.Glow.
base, not to be used directly, would lead to layering collisions!
override void OnStop(Param par=null)
float FadeColourMult(float x, float y, float deltaT)
void OnStart(Param par=null)
void OnUpdate(float delta)
Base Param Class with no parameters. Used as general purpose parameter overloaded with Param1 to Para...
PostProcessEffectType
Post-process effect type.
void Stop()
Stops all elements this effect consists of.
PPOperators
PP operators, specify operation between subsequent layers.