Difference between revisions of "ShaderGlow (CMS)"

From The Official Visionaire Studio: Adventure Game Engine Wiki
(Created page with "{| class="ts" style="width:100%" |- ! style="text-align:left" | Name !! style="text-align:left" | Type |- | shaderGlow(radius, strength, delay) || Execution |} Allows the us...")
 
m (Text replacement - "{{toc}}" to "")
Line 45: Line 45:
 
| [[media:shaderGlow.zip|shaderGlow.zip]] || A working .ved file, complete with resources. Check out the readme.txt file for instructions.
 
| [[media:shaderGlow.zip|shaderGlow.zip]] || A working .ved file, complete with resources. Check out the readme.txt file for instructions.
 
|}
 
|}
{{toc}}
 

Revision as of 00:51, 4 November 2014

Name Type
shaderGlow(radius, strength, delay) Execution


Allows the user to apply a glow effect to the scene over a specified amount of time. The shader toolkit is required for this function to work.


Examples

Enable

Adjust screen glow value

shaderGlow(1, 1, 3000) -- adjust screen glow over 3000 milliseconds
shaderGlow(1, 1, 0) -- apply screen glow instantly

Disable

Restore default glow value

shaderGlow(0, 0, 3000) -- restore screen glow back to default over 3000 milliseconds
shaderGlow(0, 0, 0) -- restore screen glow back to default instantly


Syntax Breakdown

Name Type Description
radius float (decimal) Define the radius value (area affected); number between 0 & 1 (0 = default).
strength float (decimal) Define the strength value (strength of glow); number between 0 & 1 (0 = default).
delay integer (number) The amount of time to adjust the screen glow value over; in milliseconds (ms).


Resources

Name Description
shaderGlow.zip A working .ved file, complete with resources. Check out the readme.txt file for instructions.