Difference between revisions of "Effect file"
From Serious Sam's Bogus Detour
(Created page with ".effect Category:File type") |
|||
Line 1: | Line 1: | ||
.effect | .effect | ||
+ | |||
+ | |||
+ | ===File format=== | ||
+ | |||
+ | ====Sprite==== | ||
+ | ====Light==== | ||
+ | ====Trail==== | ||
+ | |||
+ | ====Param==== | ||
+ | These are values that can be sent to the effect and used in the effect expressions, for example these are used to send in an angle to most projectiles and rotate their sprites accordingly. | ||
+ | <param name="angle" default="0" /> | ||
+ | |||
+ | ====Variation==== | ||
+ | ====Data==== | ||
+ | |||
+ | |||
+ | ===Expression language=== | ||
+ | ====Functions==== | ||
+ | sin | ||
+ | |||
+ | cos | ||
+ | |||
+ | abs | ||
+ | |||
+ | ceil | ||
+ | |||
+ | floor | ||
+ | |||
+ | exp | ||
+ | |||
+ | log | ||
+ | |||
+ | saturate | ||
+ | |||
+ | sign | ||
+ | |||
+ | sqrt | ||
+ | |||
+ | clamp | ||
+ | |||
+ | lerp | ||
+ | |||
+ | min | ||
+ | |||
+ | max | ||
+ | |||
+ | smoothstep | ||
+ | |||
+ | pow | ||
+ | |||
+ | rand | ||
+ | |||
+ | wposx | ||
+ | |||
+ | wposy | ||
+ | |||
[[Category:File type]] | [[Category:File type]] |
Revision as of 21:24, 17 April 2017
.effect
Contents
File format
Sprite
Light
Trail
Param
These are values that can be sent to the effect and used in the effect expressions, for example these are used to send in an angle to most projectiles and rotate their sprites accordingly.
<param name="angle" default="0" />
Variation
Data
Expression language
Functions
sin
cos
abs
ceil
floor
exp
log
saturate
sign
sqrt
clamp
lerp
min
max
smoothstep
pow
rand
wposx
wposy