ShaderGlow (CMS)

From The Official Visionaire Studio: Adventure Game Engine Wiki
Revision as of 23:43, 24 October 2014 by AFRLme (talk) (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...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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.