Dayz 1.25
Dayz Code Explorer by KGB
Загрузка...
Поиск...
Не найдено
Класс PPEffects

Deprecated; 'PPEManager' used instead. Подробнее...

Закрытые статические члены

static void Init ()
 
static void ResetBlurEffects ()
 
static void ResetRadialBlur ()
 
static void SetBlurValue (int index, float value)
 
static int RegisterBlurEffect ()
 
static void SetRadialBlur (float powerX, float powerY, float offsetX, float offsetY)
 sets blur effect to an absolute value between 0..1
 
static void SetBlur (float value)
 sets blur effect to an absolute value between 0..1
 
static void UpdateBlur ()
 updates the blur post process effect where the resulting blur is an aggregate of all individual blur effect values
 
static void SetBlurInventory (float value)
 Set blur inventory effect to a specified 'value' between 0..1.
 
static void SetBlurDrunk (float value)
 Set blur drunk effect to a specified 'value' between 0..1.
 
static void SetBlurFever (float value)
 Set blur drunk effect to a specified 'value' between 0..1.
 
static void SetBlurMenu (float value)
 Set menu blur to a specified 'value' between 0..1.
 
static void SetBlurOptics (float value)
 Set optics and ironsights blur to a specified 'value' between 0..1.
 
static void SetBlurFlashbang (float value)
 Set blur flashbang hit effect to a specified 'value' between 0..1.
 
static void SetBlurShock (float value)
 
static int RegisterChromAbbEffect ()
 
static void ResetChromAbbEffects ()
 
static void SetChromAbbValue (int index, float value)
 
static void SetChromAbb (float value)
 
static void UpdateChromAbb ()
 updates the chromatic abberation post process effect where the resulting chromabb is an aggregate of all individual chromabb effect values
 
static void SetChromAbbOptic (float value)
 
static void ResetColorEffects ()
 
static void SetColorValue (int index, float r, float g, float b, float a, float overlay)
 
static int RegisterColorEffect ()
 
static void UpdateColor ()
 
static void SetLensEffect (float lens, float chromAbb, float centerX, float centerY)
 
static void PerformSetLensEffect (float lens, float chromAbb, float centerX, float centerY)
 added for convenience
 
static void SetVignette (float intensity, float R, float G, float B, float A)
 
static void SetVignetteEffectValue (int index, float intensity, float r, float g, float b, float a)
 
static int RegisterVignetteEffect ()
 
static void SetUnconsciousnessVignette (float value)
 
static void SetShockVignette (float value)
 
static void SetTunnelVignette (float value)
 
static void SetMenuVignette (float value)
 
static void ResetVignettes ()
 
static void OverrideDOF (bool enable, float focusDistance, float focusLength, float focusLengthNear, float blur, float focusDepthOffset)
 
static void AddPPMask (float ndcX, float ndcY, float ndcRadius, float ndcBlur)
 
static void ResetPPMask ()
 
static void ResetDOFOverride ()
 
static void ResetLensEffect ()
 
static void HitEffect (float value)
 
static void SetShockEffectColor (float value)
 
static void FlashbangEffect (float value)
 
static void EnableBurlapSackBlindness ()
 
static void DisableBurlapSackBlindness ()
 
static void SetDeathDarkening (float value)
 
static void UpdateSaturation ()
 
static void UpdateVignette ()
 
static void SetBloodSaturation (float value)
 
static void SetColorizationNV (float r, float g, float b)
 
static void UpdateColorize ()
 
static void ResetColorize ()
 
static void SetEVValuePP (float value)
 
static void SetNVParams (float light_mult, float noise_intensity, float sharpness, float grain_size)
 
static void SetBloom (float thres, float steep, float inten)
 
static void ResetAll ()
 

Закрытые статические данные

static const int COLORIZE_NV = 100
 
static const float COLOR_SHOCK = 0.1
 
static int m_BlurInventory
 
static int m_BlurDrunk
 
static int m_BlurFever
 
static int m_BlurMenu
 
static int m_BlurOptics
 
static int m_BlurFlashbang
 
static int m_BlurShock
 
static int m_BurlapBlindness
 
static int m_DyingEffect
 
static int m_ShockEffect
 
static int m_ChromAbbOptic
 
static int m_VignetteUnconscious
 
static int m_VignetteShock
 
static int m_VignetteTunnel
 
static int m_VignetteMenu
 
static float m_BloodSaturation
 
static ref array< floatm_BlurValues
 
static ref array< floatm_ChromAbbValues
 
static ref array< intm_VignetteEffects
 
static ref map< int, ref array< float > > m_VignetteValues
 
static ref map< int, ref array< float > > m_ColorValues
 
static ref array< floatm_ColorEffect
 
static ref map< int, ref array< float > > m_ColorizeEffects
 
static float m_ColorValueTotal [4] = {0,0,0,0}
 
static float m_ColorOverlayTotal
 
static Material m_MatColors
 
static Material m_RadialBlur
 

Подробное описание

Deprecated; 'PPEManager' used instead.

Методы

◆ AddPPMask()

static void AddPPMask ( float ndcX,
float ndcY,
float ndcRadius,
float ndcBlur )
inlinestaticprivate
509 {
510 GetGame().AddPPMask(ndcX, ndcY, ndcRadius, ndcBlur);
511 }
Definition EntityAI.c:95
proto native CGame GetGame()

Перекрестные ссылки GetGame().

◆ DisableBurlapSackBlindness()

static void DisableBurlapSackBlindness ( )
inlinestaticprivate
578 {
579 SetColorValue(m_BurlapBlindness, 0, 0, 0, 0, 0.0);
580 UpdateColor();
581 g_Game.SetEVValue(0);
582 }
DayZGame g_Game
Definition DayZGame.c:3746
static void SetColorValue(int index, float r, float g, float b, float a, float overlay)
Definition PPEffects.c:356
static void UpdateColor()
Definition PPEffects.c:375
static int m_BurlapBlindness
Definition PPEffects.c:21

Перекрестные ссылки g_Game, m_BurlapBlindness, SetColorValue() и UpdateColor().

◆ EnableBurlapSackBlindness()

static void EnableBurlapSackBlindness ( )
inlinestaticprivate
571 {
572 SetColorValue(m_BurlapBlindness, 0, 0, 0, 1, 1.0);
573 UpdateColor();
574 g_Game.SetEVValue(-5);
575 }

Перекрестные ссылки g_Game, m_BurlapBlindness, SetColorValue() и UpdateColor().

◆ FlashbangEffect()

static void FlashbangEffect ( float value)
inlinestaticprivate
559 {
560 float hitEffectColor[4];
561 hitEffectColor[0] = 1;
562 hitEffectColor[1] = 1;
563 hitEffectColor[2] = 1;
565
566 m_MatColors.SetParam("OverlayColor", hitEffectColor);
567 m_MatColors.SetParam("OverlayFactor", 0.75);
568 }
Definition EnMath.c:7
static float m_ColorValueTotal[4]
Definition PPEffects.c:46
static Material m_MatColors
Definition PPEffects.c:49
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 Lerp(float a, float b, float time)
Linearly interpolates between 'a' and 'b' given 'time'.

Перекрестные ссылки Math::Clamp(), Math::Lerp(), m_ColorValueTotal и m_MatColors.

◆ HitEffect()

static void HitEffect ( float value)
inlinestaticprivate
529 {
530 float m_HitEffectColor[4];
532 m_HitEffectColor[1] = 0;
533 m_HitEffectColor[2] = 0;
535 /*
536 Print("---------------------------");
537 Print("m_ColorValueTotal[0]: " + m_ColorValueTotal[0]);
538 Print("value: " + value);
539 Print("---------------------------");
540 Print("r: " + m_HitEffectColor[0]);
541 Print("g: " + m_HitEffectColor[1]);
542 Print("b: " + m_HitEffectColor[2]);
543 Print("a: " + m_HitEffectColor[3]);
544 */
545 m_MatColors.SetParam("OverlayColor", m_HitEffectColor);
546 m_MatColors.SetParam("OverlayFactor", 0.05);
547 }

Перекрестные ссылки Math::Clamp(), Math::Lerp(), m_ColorValueTotal и m_MatColors.

◆ Init()

static void Init ( )
inlinestaticprivate
53 {
54 //Print("---Init PPEffects---");
55 if ( m_BlurValues )
56 {
57 delete m_BlurValues;
58 }
59 if ( m_ChromAbbValues )
60 {
61 delete m_ChromAbbValues;
62 }
64 {
65 delete m_VignetteEffects;
66 }
67 if ( m_VignetteValues )
68 {
69 delete m_VignetteValues;
70 }
71 if ( m_ColorEffect )
72 {
73 delete m_ColorEffect;
74 }
75
76 m_MatColors = GetGame().GetWorld().GetMaterial("graphics/materials/postprocess/glow");
77 m_RadialBlur = GetGame().GetWorld().GetMaterial("graphics/materials/postprocess/radialblur");
82
83 // add new blur effects here
90
91 // add chromatic abberation effects here
93 //m_ChromAbbShock = RegisterChromAbbEffect();
94
95 // add vignette effects here
100
103
104 // add new color effects here
108
109 // ------------------------NV-related stuff below------------------------
110 array<float> colorizeDefault = {0.0, 0.0, 0.0};
112
113 // colorize: r, g, b
114 // colorize effects registration
116 //SetNVParams(1.0, 0.0, 2.35, 2.75); //default values
117 // ------------------------End of NV-related stuff------------------------
118 }
Deprecated; 'PPEManager' used instead.
Definition PPEffects.c:3
static int RegisterVignetteEffect()
Definition PPEffects.c:460
static ref map< int, ref array< float > > m_VignetteValues
Definition PPEffects.c:38
static ref array< float > m_ChromAbbValues
Definition PPEffects.c:36
static int m_BlurInventory
Definition PPEffects.c:13
static const int COLORIZE_NV
Definition PPEffects.c:5
static Material m_RadialBlur
Definition PPEffects.c:50
static ref map< int, ref array< float > > m_ColorizeEffects
Definition PPEffects.c:41
static int RegisterColorEffect()
Definition PPEffects.c:370
static int m_ShockEffect
Definition PPEffects.c:23
static ref array< float > m_BlurValues
Definition PPEffects.c:35
static int m_DyingEffect
Definition PPEffects.c:22
static ref array< int > m_VignetteEffects
Definition PPEffects.c:37
static int RegisterChromAbbEffect()
Definition PPEffects.c:255
static int m_ChromAbbOptic
Definition PPEffects.c:25
static int m_VignetteShock
Definition PPEffects.c:29
static int m_VignetteTunnel
Definition PPEffects.c:30
static ref array< float > m_ColorEffect
Definition PPEffects.c:40
static int m_BlurMenu
Definition PPEffects.c:16
static int m_BlurOptics
Definition PPEffects.c:17
static ref map< int, ref array< float > > m_ColorValues
Definition PPEffects.c:39
static int m_VignetteUnconscious
Definition PPEffects.c:28
static int m_VignetteMenu
Definition PPEffects.c:31
static int RegisterBlurEffect()
Definition PPEffects.c:149
static int m_BlurFlashbang
Definition PPEffects.c:18
static int m_BlurDrunk
Definition PPEffects.c:14
static int m_BlurFever
Definition PPEffects.c:15

Перекрестные ссылки COLORIZE_NV, GetGame(), m_BlurDrunk, m_BlurFever, m_BlurFlashbang, m_BlurInventory, m_BlurMenu, m_BlurOptics, m_BlurValues, m_BurlapBlindness, m_ChromAbbOptic, m_ChromAbbValues, m_ColorEffect, m_ColorizeEffects, m_ColorValues, m_DyingEffect, m_MatColors, m_RadialBlur, m_ShockEffect, m_VignetteEffects, m_VignetteMenu, m_VignetteShock, m_VignetteTunnel, m_VignetteUnconscious, m_VignetteValues, RegisterBlurEffect(), RegisterChromAbbEffect(), RegisterColorEffect() и RegisterVignetteEffect().

Используется в DayZIntroScene::DayZIntroScene(), DayZIntroSceneXbox::DayZIntroSceneXbox() и MissionBase::OnInit().

◆ OverrideDOF()

static void OverrideDOF ( bool enable,
float focusDistance,
float focusLength,
float focusLengthNear,
float blur,
float focusDepthOffset )
inlinestaticprivate

Перекрестные ссылки GetGame().

Используется в ResetDOFOverride().

◆ PerformSetLensEffect()

static void PerformSetLensEffect ( float lens,
float chromAbb,
float centerX,
float centerY )
inlinestaticprivate

added for convenience

420 {
421 m_MatColors.SetParam("LensDistort", lens);
423 m_MatColors.SetParam("LensCenterX", centerX);
424 m_MatColors.SetParam("LensCenterY", centerY);
425 }
static void SetChromAbbOptic(float value)
Definition PPEffects.c:312

Перекрестные ссылки m_MatColors и SetChromAbbOptic().

Используется в SetLensEffect().

◆ RegisterBlurEffect()

static int RegisterBlurEffect ( )
inlinestaticprivate
150 {
151 return m_BlurValues.Insert(0);
152 }

Перекрестные ссылки m_BlurValues.

Используется в Init().

◆ RegisterChromAbbEffect()

static int RegisterChromAbbEffect ( )
inlinestaticprivate
256 {
257 return m_ChromAbbValues.Insert(0);
258 }

Перекрестные ссылки m_ChromAbbValues.

Используется в Init().

◆ RegisterColorEffect()

static int RegisterColorEffect ( )
inlinestaticprivate
371 {
372 return m_ColorEffect.Insert(0);
373 }

Перекрестные ссылки m_ColorEffect.

Используется в Init().

◆ RegisterVignetteEffect()

static int RegisterVignetteEffect ( )
inlinestaticprivate
461 {
462 return m_VignetteEffects.Insert(0);
463 }

Перекрестные ссылки m_VignetteEffects.

Используется в Init().

◆ ResetAll()

static void ResetAll ( )
inlinestaticprivate
745 {
749 ResetPPMask();
753 //RemoveUnconsciousnessVignette();
755 }
static void ResetColorize()
Definition PPEffects.c:706
static void ResetBlurEffects()
Definition PPEffects.c:120
static void ResetLensEffect()
Definition PPEffects.c:523
static void SetBloodSaturation(float value)
Definition PPEffects.c:640
static void ResetVignettes()
Definition PPEffects.c:489
static void ResetColorEffects()
Definition PPEffects.c:343
static void ResetDOFOverride()
Definition PPEffects.c:518
static void ResetPPMask()
Definition PPEffects.c:513

Перекрестные ссылки ResetBlurEffects(), ResetColorEffects(), ResetColorize(), ResetDOFOverride(), ResetLensEffect(), ResetPPMask(), ResetVignettes() и SetBloodSaturation().

◆ ResetBlurEffects()

static void ResetBlurEffects ( )
inlinestaticprivate
121 {
122 if( m_BlurValues )
123 {
124 for ( int i = 0; i < m_BlurValues.Count(); ++i )
125 {
126 m_BlurValues[i] = 0;
127 }
128 UpdateBlur();
129 }
130 }
static void UpdateBlur()
updates the blur post process effect where the resulting blur is an aggregate of all individual blur ...
Definition PPEffects.c:182

Перекрестные ссылки m_BlurValues и UpdateBlur().

Используется в ResetAll().

◆ ResetChromAbbEffects()

static void ResetChromAbbEffects ( )
inlinestaticprivate
261 {
262 if( m_ChromAbbValues )
263 {
264 for ( int i = 0; i < m_ChromAbbValues.Count(); ++i )
265 {
266 m_ChromAbbValues[i] = 0;
267 }
269 }
270 }
static void UpdateChromAbb()
updates the chromatic abberation post process effect where the resulting chromabb is an aggregate of ...
Definition PPEffects.c:298

Перекрестные ссылки m_ChromAbbValues и UpdateChromAbb().

◆ ResetColorEffects()

static void ResetColorEffects ( )
inlinestaticprivate
344 {
345 if( m_ColorEffect )
346 {
347 for ( int i = 0; i < m_ColorEffect.Count(); ++i )
348 {
349 //m_ColorEffect[i] = 0;
350 m_ColorValues.Set(i,{0,0,0,0,0});
351 }
352 UpdateColor();
353 }
354 }

Перекрестные ссылки m_ColorEffect, m_ColorValues и UpdateColor().

Используется в ResetAll().

◆ ResetColorize()

static void ResetColorize ( )
inlinestaticprivate
707 {
708 float color[4];
709 color[0] = 1.0;
710 color[1] = 1.0;
711 color[2] = 1.0;
712 color[3] = 0;
713 m_MatColors.SetParam("ColorizationColor", color);
714 }

Перекрестные ссылки m_MatColors.

Используется в ResetAll() и UpdateColorize().

◆ ResetDOFOverride()

static void ResetDOFOverride ( )
inlinestaticprivate
519 {
520 OverrideDOF(false,0,0,0,0,1);
521 }
static void OverrideDOF(bool enable, float focusDistance, float focusLength, float focusLengthNear, float blur, float focusDepthOffset)
Definition PPEffects.c:503

Перекрестные ссылки OverrideDOF().

Используется в ResetAll().

◆ ResetLensEffect()

static void ResetLensEffect ( )
inlinestaticprivate
524 {
525 SetLensEffect(0,0,0,0);
526 }
static void SetLensEffect(float lens, float chromAbb, float centerX, float centerY)
Definition PPEffects.c:413

Перекрестные ссылки SetLensEffect().

Используется в ResetAll().

◆ ResetPPMask()

static void ResetPPMask ( )
inlinestaticprivate
514 {
515 if( GetGame() ) GetGame().ResetPPMask();
516 }

Перекрестные ссылки GetGame().

Используется в ResetAll().

◆ ResetRadialBlur()

static void ResetRadialBlur ( )
inlinestaticprivate
133 {
134 SetRadialBlur(0,0,0,0);
135 }
static void SetRadialBlur(float powerX, float powerY, float offsetX, float offsetY)
sets blur effect to an absolute value between 0..1
Definition PPEffects.c:156

Перекрестные ссылки SetRadialBlur().

◆ ResetVignettes()

static void ResetVignettes ( )
inlinestaticprivate
490 {
491 if( m_VignetteValues )
492 {
493 for ( int i = 0; i < m_VignetteValues.Count(); ++i )
494 {
495 array<float> values = {0,0,0,0,0};
496
498 }
500 }
501 }
static void UpdateVignette()
Definition PPEffects.c:600

Перекрестные ссылки m_VignetteValues и UpdateVignette().

Используется в ResetAll().

◆ SetBloodSaturation()

static void SetBloodSaturation ( float value)
inlinestaticprivate
641 {
644 }
static float m_BloodSaturation
Definition PPEffects.c:33
static void UpdateSaturation()
Definition PPEffects.c:595

Перекрестные ссылки m_BloodSaturation и UpdateSaturation().

Используется в ResetAll().

◆ SetBloom()

static void SetBloom ( float thres,
float steep,
float inten )
inlinestaticprivate
738 {
739 m_MatColors.SetParam("BloomThreshold", thres);
740 m_MatColors.SetParam("BloomSteepness", steep);
741 m_MatColors.SetParam("BloomIntensity", inten);
742 }

Перекрестные ссылки m_MatColors.

◆ SetBlur()

static void SetBlur ( float value)
inlinestaticprivate

sets blur effect to an absolute value between 0..1

169 {
170 if (GetGame())
171 {
172 Material mat_blur = GetGame().GetWorld().GetMaterial("graphics/materials/postprocess/gauss");
173
174 if (mat_blur)
175 {
176 mat_blur.SetParam("Intensity", value);
177 }
178 }
179 }
Definition proto.c:268

Перекрестные ссылки GetGame().

Используется в UpdateBlur().

◆ SetBlurDrunk()

static void SetBlurDrunk ( float value)
inlinestaticprivate

Set blur drunk effect to a specified 'value' between 0..1.

205 {
207 UpdateBlur();
208 }
static void SetBlurValue(int index, float value)
Definition PPEffects.c:137

Перекрестные ссылки m_BlurDrunk, SetBlurValue() и UpdateBlur().

◆ SetBlurFever()

static void SetBlurFever ( float value)
inlinestaticprivate

Set blur drunk effect to a specified 'value' between 0..1.

213 {
215 UpdateBlur();
216 }

Перекрестные ссылки m_BlurFever, SetBlurValue() и UpdateBlur().

◆ SetBlurFlashbang()

static void SetBlurFlashbang ( float value)
inlinestaticprivate

Set blur flashbang hit effect to a specified 'value' between 0..1.

237 {
239 UpdateBlur();
240 }

Перекрестные ссылки m_BlurFlashbang, SetBlurValue() и UpdateBlur().

◆ SetBlurInventory()

static void SetBlurInventory ( float value)
inlinestaticprivate

Set blur inventory effect to a specified 'value' between 0..1.

198 {
200 UpdateBlur();
201 }

Перекрестные ссылки m_BlurInventory, SetBlurValue() и UpdateBlur().

◆ SetBlurMenu()

static void SetBlurMenu ( float value)
inlinestaticprivate

Set menu blur to a specified 'value' between 0..1.

221 {
223 UpdateBlur();
224 }

Перекрестные ссылки m_BlurMenu, SetBlurValue() и UpdateBlur().

◆ SetBlurOptics()

static void SetBlurOptics ( float value)
inlinestaticprivate

Set optics and ironsights blur to a specified 'value' between 0..1.

229 {
231 UpdateBlur();
232 }

Перекрестные ссылки m_BlurOptics, SetBlurValue() и UpdateBlur().

◆ SetBlurShock()

static void SetBlurShock ( float value)
inlinestaticprivate
243 {
245 UpdateBlur();
246 }
static int m_BlurShock
Definition PPEffects.c:19

Перекрестные ссылки m_BlurShock, SetBlurValue() и UpdateBlur().

◆ SetBlurValue()

static void SetBlurValue ( int index,
float value )
inlinestaticprivate
138 {
139 if ( m_BlurValues && index < m_BlurValues.Count() )
140 {
142 }
143 else
144 {
145 Print("Error: PPEffects: m_BlurValues with index: "+ index +" is not registered.");
146 }
147 }
proto void Print(void var)
Prints content of variable to console/log.

Перекрестные ссылки m_BlurValues и Print().

Используется в SetBlurDrunk(), SetBlurFever(), SetBlurFlashbang(), SetBlurInventory(), SetBlurMenu(), SetBlurOptics() и SetBlurShock().

◆ SetChromAbb()

static void SetChromAbb ( float value)
inlinestaticprivate
285 {
286 if (GetGame())
287 {
288 if (m_MatColors)
289 {
290 //Print("SetChromAbb: " + value);
291 m_MatColors.SetParam("MaxChromAbberation", value);
292 //SetVignette(value,0,255,0);
293 }
294 }
295 }

Перекрестные ссылки GetGame() и m_MatColors.

Используется в UpdateChromAbb().

◆ SetChromAbbOptic()

static void SetChromAbbOptic ( float value)
inlinestaticprivate
313 {
316 }
static void SetChromAbbValue(int index, float value)
Definition PPEffects.c:272

Перекрестные ссылки m_ChromAbbOptic, SetChromAbbValue() и UpdateChromAbb().

Используется в PerformSetLensEffect().

◆ SetChromAbbValue()

static void SetChromAbbValue ( int index,
float value )
inlinestaticprivate
273 {
274 if ( m_ChromAbbValues && index < m_ChromAbbValues.Count() )
275 {
277 }
278 else
279 {
280 Print("Error: PPEffects: m_ChromAbbValues with index: "+ index +" is not registered.");
281 }
282 }

Перекрестные ссылки m_ChromAbbValues и Print().

Используется в SetChromAbbOptic().

◆ SetColorizationNV()

static void SetColorizationNV ( float r,
float g,
float b )
inlinestaticprivate
660 {
661 array<float> colorizeArray = {r, g, b};
664 }
static void UpdateColorize()
Definition PPEffects.c:666

Перекрестные ссылки COLORIZE_NV, m_ColorizeEffects и UpdateColorize().

◆ SetColorValue()

static void SetColorValue ( int index,
float r,
float g,
float b,
float a,
float overlay )
inlinestaticprivate
357 {
358 if ( index < m_ColorEffect.Count() )
359 {
360 array<float> values = {r,g,b,a,overlay};
361
363 }
364 else
365 {
366 Print("Error: PPEffects: m_ColorValues with index: "+ index +" is not registered.");
367 }
368 }

Перекрестные ссылки m_ColorEffect, m_ColorValues и Print().

Используется в DisableBurlapSackBlindness(), EnableBurlapSackBlindness(), SetDeathDarkening() и SetShockEffectColor().

◆ SetDeathDarkening()

static void SetDeathDarkening ( float value)
inlinestaticprivate
585 {
586 value = Math.Clamp(value,0,1);
587 SetColorValue(m_DyingEffect, 0, 0, 0, 1, value);
588 UpdateColor();
589 if (value > 0.99)
590 SetEVValuePP(-5); //additional "darkness" to avoid lens flare
591 else
592 SetEVValuePP(0);
593 }
static void SetEVValuePP(float value)
Definition PPEffects.c:717

Перекрестные ссылки Math::Clamp(), m_DyingEffect, SetColorValue(), SetEVValuePP() и UpdateColor().

◆ SetEVValuePP()

static void SetEVValuePP ( float value)
inlinestaticprivate
718 {
719 g_Game.SetEVValue(value);
720 }

Перекрестные ссылки g_Game.

Используется в SetDeathDarkening().

◆ SetLensEffect()

static void SetLensEffect ( float lens,
float chromAbb,
float centerX,
float centerY )
inlinestaticprivate

set lens effect

Аргументы
lens<-5, 5>, 0 = disable (performance plus), > 0 = outside effect, < 0 inside effect
chromAbb<0, 1>, chromaticity, 1 = max, 0 disable (performance plus)
centerX<-1, 1>, center of effect, 0 = screen center in X
centerY<-1, 1>, center of effect, 0 = screen center in Y
414 {
416 }
static void PerformSetLensEffect(float lens, float chromAbb, float centerX, float centerY)
added for convenience
Definition PPEffects.c:419

Перекрестные ссылки PerformSetLensEffect().

Используется в ResetLensEffect().

◆ SetMenuVignette()

static void SetMenuVignette ( float value)
inlinestaticprivate
484 {
487 }
static void SetVignetteEffectValue(int index, float intensity, float r, float g, float b, float a)
Definition PPEffects.c:446

Перекрестные ссылки m_VignetteMenu, SetVignetteEffectValue() и UpdateVignette().

◆ SetNVParams()

static void SetNVParams ( float light_mult,
float noise_intensity,
float sharpness,
float grain_size )
inlinestaticprivate
725 {
726 Material matHDR = GetGame().GetWorld().GetMaterial("Graphics/Materials/postprocess/filmgrainNV");
727/*#ifdef PLATFORM_CONSOLE
728//worst-case scenario console fix!
729 noise_intensity = 0.0;
730#endif*/
731 g_Game.NightVissionLightParams(light_mult, noise_intensity);
732 matHDR.SetParam("Sharpness", sharpness);
733 matHDR.SetParam("GrainSize", grain_size);
734 }

Перекрестные ссылки g_Game и GetGame().

◆ SetRadialBlur()

static void SetRadialBlur ( float powerX,
float powerY,
float offsetX,
float offsetY )
inlinestaticprivate

sets blur effect to an absolute value between 0..1

157 {
158 if (GetGame())
159 {
160 m_RadialBlur.SetParam("PowerX", powerX);
161 m_RadialBlur.SetParam("PowerY", powerY);
162 m_RadialBlur.SetParam("OffsetX", offsetX);
163 m_RadialBlur.SetParam("OffsetY", offsetY);
164 }
165 }

Перекрестные ссылки GetGame() и m_RadialBlur.

Используется в ResetRadialBlur().

◆ SetShockEffectColor()

static void SetShockEffectColor ( float value)
inlinestaticprivate
550 {
551 if (value > 0)
553 else
554 SetColorValue(m_ShockEffect, 0, 0, 0, 1, value);
555 UpdateColor();
556 }
static const float COLOR_SHOCK
Definition PPEffects.c:8

Перекрестные ссылки COLOR_SHOCK, m_ShockEffect, SetColorValue() и UpdateColor().

◆ SetShockVignette()

static void SetShockVignette ( float value)
inlinestaticprivate
472 {
475 }

Перекрестные ссылки m_VignetteShock, SetVignetteEffectValue() и UpdateVignette().

◆ SetTunnelVignette()

static void SetTunnelVignette ( float value)
inlinestaticprivate
478 {
481 }

Перекрестные ссылки m_VignetteTunnel, SetVignetteEffectValue() и UpdateVignette().

◆ SetUnconsciousnessVignette()

static void SetUnconsciousnessVignette ( float value)
inlinestaticprivate
466 {
469 }

Перекрестные ссылки m_VignetteUnconscious, SetVignetteEffectValue() и UpdateVignette().

◆ SetVignette()

static void SetVignette ( float intensity,
float R,
float G,
float B,
float A )
inlinestaticprivate

set vignette

Аргументы
intensity<0, 1>, intensity of effect, 0 = disable
R
G
B
435 {
436 float color[4];
437 color[0] = R;
438 color[1] = G;
439 color[2] = B;
440 color[3] = A;
441
442 m_MatColors.SetParam("Vignette", intensity);
443 m_MatColors.SetParam("VignetteColor", color);
444 }
@ R
reverse
Definition Car.c:71
@ B
Definition EnSystem.c:346
@ A
Definition EnSystem.c:345

Перекрестные ссылки A, B, m_MatColors и R.

Используется в UpdateVignette().

◆ SetVignetteEffectValue()

static void SetVignetteEffectValue ( int index,
float intensity,
float r,
float g,
float b,
float a )
inlinestaticprivate
447 {
448 if ( index < m_VignetteEffects.Count() )
449 {
450 array<float> values = {intensity,r,g,b,a};
451
453 }
454 else
455 {
456 Print("Error: PPEffects: m_ColorValues with index: "+ index +" is not registered.");
457 }
458 }

Перекрестные ссылки m_VignetteEffects, m_VignetteValues и Print().

Используется в SetMenuVignette(), SetShockVignette(), SetTunnelVignette() и SetUnconsciousnessVignette().

◆ UpdateBlur()

static void UpdateBlur ( )
inlinestaticprivate

updates the blur post process effect where the resulting blur is an aggregate of all individual blur effect values

183 {
184 float blur_value_total = 0;
185 if( m_BlurValues )
186 {
187 for ( int i = 0; i < m_BlurValues.Count(); ++i )
188 {
190 }
191 }
192
194 }
static void SetBlur(float value)
sets blur effect to an absolute value between 0..1
Definition PPEffects.c:168

Перекрестные ссылки m_BlurValues и SetBlur().

Используется в ResetBlurEffects(), SetBlurDrunk(), SetBlurFever(), SetBlurFlashbang(), SetBlurInventory(), SetBlurMenu(), SetBlurOptics() и SetBlurShock().

◆ UpdateChromAbb()

static void UpdateChromAbb ( )
inlinestaticprivate

updates the chromatic abberation post process effect where the resulting chromabb is an aggregate of all individual chromabb effect values

299 {
300 float chromabb_value_total = 0;
301 if( m_ChromAbbValues )
302 {
303 for ( int i = 0; i < m_ChromAbbValues.Count(); ++i )
304 {
305 chromabb_value_total += m_ChromAbbValues[i]; //currently additive!
306 }
307 }
308
310 }
static void SetChromAbb(float value)
Definition PPEffects.c:284

Перекрестные ссылки m_ChromAbbValues и SetChromAbb().

Используется в ResetChromAbbEffects() и SetChromAbbOptic().

◆ UpdateColor()

static void UpdateColor ( )
inlinestaticprivate
376 {
377 float color_value_total[4] = {0,0,0,0};
378 float color_overlay;
379 /*
380 m_MatColors.ResetParam("OverlayColor");
381 m_MatColors.ResetParam("OverlayFactor");
382 */
383 if( !GetGame() || !GetGame().GetWorld() )
384 {
385 return;
386 }
387
388 for ( int i = 0; i < m_ColorValues.Count(); ++i )
389 {
390 int key = m_ColorValues.GetKey(i);
392
397 color_overlay += value[4];
398 }
399
402 m_MatColors.SetParam("OverlayColor", color_value_total);
403 m_MatColors.SetParam("OverlayFactor", color_overlay);
404 }
static float m_ColorOverlayTotal
Definition PPEffects.c:47

Перекрестные ссылки GetGame(), m_ColorOverlayTotal, m_ColorValues, m_ColorValueTotal и m_MatColors.

Используется в DisableBurlapSackBlindness(), EnableBurlapSackBlindness(), ResetColorEffects(), SetDeathDarkening() и SetShockEffectColor().

◆ UpdateColorize()

static void UpdateColorize ( )
inlinestaticprivate
667 {
668 bool foundActiveEffect = false;
669 int lowestKey = 1000000;
671 // search for active effect with highest priority (lower value of key better)
672 for (int i = 0; i < m_ColorizeEffects.Count(); i++)
673 {
674 int currentKey = m_ColorizeEffects.GetKey(i);
676 // check for non-zero active effect
677 for (int j = 0; j < colorizeValues.Count(); j++)
678 {
679 if (colorizeValues[j] != 0.0)
680 {
681 if (currentKey < lowestKey)
682 {
685 foundActiveEffect = true;
686 break;
687 }
688 }
689 }
690 }
692 {
693 float color[4];
694 color[0] = chosenArray[0];
695 color[1] = chosenArray[1];
696 color[2] = chosenArray[2];
697 color[3] = 0;
698 m_MatColors.SetParam("ColorizationColor", color);
699 }
700 else
701 {
702 // no active event found, reset colorize effect
704 }
705 }

Перекрестные ссылки m_ColorizeEffects, m_MatColors и ResetColorize().

Используется в SetColorizationNV().

◆ UpdateSaturation()

static void UpdateSaturation ( )
inlinestaticprivate
596 {
597 m_MatColors.SetParam("Saturation", m_BloodSaturation/*+add_additional_modifiers_here*/);
598 }

Перекрестные ссылки m_BloodSaturation и m_MatColors.

Используется в SetBloodSaturation().

◆ UpdateVignette()

static void UpdateVignette ( )
inlinestaticprivate
601 {
602 float color[4];
603 float intesity;
604
605 float intensity_value_total = 0; //use just the highest?
607 {
608 for ( int i = 0; i < m_VignetteEffects.Count(); ++i )
609 {
610 if (m_VignetteValues.Get(i))
611 {
612 /*color[0] = m_VignetteValues.Get(i)[1]; //red
613 color[1] = m_VignetteValues.Get(i)[2]; //green
614 color[2] = m_VignetteValues.Get(i)[3]; //blue
615 color[3] = m_VignetteValues.Get(i)[4]; //alpha*/
616 color[0] = m_VignetteValues.Get(i).Get(1); //red
617 color[1] = m_VignetteValues.Get(i).Get(2); //green
618 color[2] = m_VignetteValues.Get(i).Get(3); //blue
619 color[3] = m_VignetteValues.Get(i).Get(4); //alpha
620
621 intesity = m_VignetteValues.Get(i).Get(0);
623 }
624 else
625 {
626 //Print("no m_VignetteValues");
627 }
628 }
629 }
630
631 /*color[0] = m_UnconsciousVignetteColor[0];
632 color[1] = m_UnconsciousVignetteColor[1];
633 color[2] = m_UnconsciousVignetteColor[2];
634
635 intesity = m_UnconsciousVignetteIntesity;*/
636
638 }
static void SetVignette(float intensity, float R, float G, float B, float A)
Definition PPEffects.c:434

Перекрестные ссылки m_VignetteEffects, m_VignetteValues и SetVignette().

Используется в ResetVignettes(), SetMenuVignette(), SetShockVignette(), SetTunnelVignette() и SetUnconsciousnessVignette().

Поля

◆ COLOR_SHOCK

const float COLOR_SHOCK = 0.1
staticprivate

Используется в SetShockEffectColor().

◆ COLORIZE_NV

const int COLORIZE_NV = 100
staticprivate

Используется в Init() и SetColorizationNV().

◆ m_BloodSaturation

float m_BloodSaturation
staticprivate

Используется в SetBloodSaturation() и UpdateSaturation().

◆ m_BlurDrunk

int m_BlurDrunk
staticprivate

Используется в Init() и SetBlurDrunk().

◆ m_BlurFever

int m_BlurFever
staticprivate

Используется в Init() и SetBlurFever().

◆ m_BlurFlashbang

int m_BlurFlashbang
staticprivate

Используется в Init() и SetBlurFlashbang().

◆ m_BlurInventory

int m_BlurInventory
staticprivate

Используется в Init() и SetBlurInventory().

◆ m_BlurMenu

int m_BlurMenu
staticprivate

Используется в Init() и SetBlurMenu().

◆ m_BlurOptics

int m_BlurOptics
staticprivate

Используется в Init() и SetBlurOptics().

◆ m_BlurShock

int m_BlurShock
staticprivate

Используется в SetBlurShock().

◆ m_BlurValues

ref array<float> m_BlurValues
staticprivate

◆ m_BurlapBlindness

int m_BurlapBlindness
staticprivate

◆ m_ChromAbbOptic

int m_ChromAbbOptic
staticprivate

Используется в Init() и SetChromAbbOptic().

◆ m_ChromAbbValues

ref array<float> m_ChromAbbValues
staticprivate

◆ m_ColorEffect

ref array<float> m_ColorEffect
staticprivate

◆ m_ColorizeEffects

ref map<int, ref array<float> > m_ColorizeEffects
staticprivate

Используется в Init(), SetColorizationNV() и UpdateColorize().

◆ m_ColorOverlayTotal

float m_ColorOverlayTotal
staticprivate

Используется в UpdateColor().

◆ m_ColorValues

ref map<int, ref array<float> > m_ColorValues
staticprivate

Используется в Init(), ResetColorEffects(), SetColorValue() и UpdateColor().

◆ m_ColorValueTotal

float m_ColorValueTotal[4] = {0,0,0,0}
staticprivate
46{0,0,0,0};

Используется в FlashbangEffect(), HitEffect() и UpdateColor().

◆ m_DyingEffect

int m_DyingEffect
staticprivate

Используется в Init() и SetDeathDarkening().

◆ m_MatColors

◆ m_RadialBlur

Material m_RadialBlur
staticprivate

Используется в Init() и SetRadialBlur().

◆ m_ShockEffect

int m_ShockEffect
staticprivate

Используется в Init() и SetShockEffectColor().

◆ m_VignetteEffects

ref array<int> m_VignetteEffects
staticprivate

◆ m_VignetteMenu

int m_VignetteMenu
staticprivate

Используется в Init() и SetMenuVignette().

◆ m_VignetteShock

int m_VignetteShock
staticprivate

Используется в Init() и SetShockVignette().

◆ m_VignetteTunnel

int m_VignetteTunnel
staticprivate

Используется в Init() и SetTunnelVignette().

◆ m_VignetteUnconscious

int m_VignetteUnconscious
staticprivate

Используется в Init() и SetUnconsciousnessVignette().

◆ m_VignetteValues

ref map<int, ref array<float> > m_VignetteValues
staticprivate

Объявления и описания членов класса находятся в файле: