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

◆ SetBlur()

static void PPEffects::SetBlur ( float value)
inlinestaticprivate

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

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

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 }
proto native World GetWorld()
proto bool SetParam(string propertyName, void value)
proto native Material GetMaterial(string materialName)
proto native CGame GetGame()
int[] Material
Определения proto.c:265

Перекрестные ссылки GetGame(), World::GetMaterial(), CGame::GetWorld() и Material::SetParam().

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