DayZ 1.27
DayZ Explorer by KGB
 
Загрузка...
Поиск...
Не найдено

◆ UpdateVignette()

static void PPEffects::UpdateVignette ( )
inlinestaticprivate

См. определение в файле PPEffects.c строка 600

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);
622 intensity_value_total += intesity;
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
637 SetVignette( intensity_value_total, color[0], color[1], color[2], color[3] );
638 }
static ref map< int, ref array< float > > m_VignetteValues
Определения PPEffects.c:38
static ref array< int > m_VignetteEffects
Определения PPEffects.c:37
static void SetVignette(float intensity, float R, float G, float B, float A)
Определения PPEffects.c:434

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

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