Difference between revisions of "ShaderBlur (CMS)"

From The Official Visionaire Studio: Adventure Game Engine Wiki
(Created page with "<div class="toccolours mw-collapsible mw-collapsed tbl-ds"> <span class="bold">Function History</span> <div class="mw-collapsible-content"> <div class="alt-bg">Available since...")
 
Line 38: Line 38:
 
'''active''': integer (number)<br/>
 
'''active''': integer (number)<br/>
 
Render blur active or inactive; 0 = off, 1 = on
 
Render blur active or inactive; 0 = off, 1 = on
 
  
 
'''value''': float (number)  
 
'''value''': float (number)  
 
The amount to blur the screen by; recommended value somewhere between 0.8 & 1.4
 
The amount to blur the screen by; recommended value somewhere between 0.8 & 1.4
 
  
 
'''delay''': integer (number)  
 
'''delay''': integer (number)  

Revision as of 21:17, 14 August 2014

Function History

Available since v4.0


Allows the user to blur or focus the camera/screen over a specified amount of time.

Additional Info

Any values below 0.8 and above 2 tend to have some trippy side effects. Recommended values are between 0.8 & 1.4.


Syntax:

shaderBlur(active, value, delay)


Example 1: set blur amount

shaderBlur(1, 0.8, 3000) -- blur the screen over 3000 milliseconds
shaderBlur(1, 0.8, 0) -- blur screen instantly

Example 2: turn blur off

shaderBlur(0, 0, 3000) -- focus screen back to default over 3000 milliseconds
shaderBlur(0, 0, 0) -- focus screen back to default instantly


Arguments

active: integer (number)
Render blur active or inactive; 0 = off, 1 = on

value: float (number) The amount to blur the screen by; recommended value somewhere between 0.8 & 1.4

delay: integer (number) The amount of time to colorize the screen over in milliseconds (ms)


Flags

none


Return

none


Relevant Pages: to add...