This flag is usually used when the shader is associated with something special, like special weather, spell, or alcohol effects.
Controlling Uniforms
####################
By default, any uniform you defined will not be exposed to Lua, you must set the ``static`` flag to ``false`` in every uniform block for which you want exposed.
For example, to set the ``uDesaturationFactor`` uniform from a Lua script, we must define it as follows.
..code-block:: none
uniform_float uDesaturationFactor {
default = 0.5;
min = 0.0;
max = 1.0;
step = 0.05;
description = "Desaturation factor. A value of 1.0 is full grayscale.";
static = false;
}
In some player Lua script, this uniform can then be freely set. When a uniform is set to ``static`` it will no longer show up in the HUD.
Here, instead of disabling and enabling the shader we set the factor to ``0`` or ``1``, respectively.
..code-block:: Lua
local input = require('openmw.input')
local postprocessing = require('openmw.postprocessing')