ShaderContrast (CMS)
From The Official Visionaire Studio: Adventure Game Engine Wiki
Function History
Available since v4.0
Allows the user to adjust the screen contrast over a specified amount of time. The shader toolkit is needed for this function to work.
Syntax:
shaderContrast(contrast, delay)
Example 1: adjust screen contrast value
shaderContrast(1.1, 3000) -- adjust screen contrast over 3000 milliseconds
shaderContrast(1.1, 0) -- adjust screen contrast instantly
Example 2: restore default screen contrast value
shaderContrast(1, 3000) -- restore screen contrast over 3000 milliseconds
shaderContrast(1, 0) -- restore screen contrast value back to default instantly
Arguments
contrast: float (number)
Define the contrast value; number between 0 & 2 (1 = default)
delay: integer (number)
The amount of time to adjust the screen contrast value over in milliseconds (ms)
Flags
none
Return
none
Relevant Pages: to add... |