Difference between revisions of "ShaderLamp (CMS)"

From The Official Visionaire Studio: Adventure Game Engine Wiki
Line 36: Line 36:
 
| targ || point (x, y, z) || The target position of the light source. The light travels from pos to targ. ''Only for point lighting; set {0,0,0} for spotlight.''
 
| targ || point (x, y, z) || The target position of the light source. The light travels from pos to targ. ''Only for point lighting; set {0,0,0} for spotlight.''
 
|-
 
|-
| falloff || ... || ...
+
| falloff || point (cnst, lnr, quad) || The falloff controls the amount of light decay over distance. ''Please see [https://developer.valvesoftware.com/wiki/Constant-Linear-Quadratic_Falloff here] for more details on light attenuation.''
 
|}
 
|}
 
index, type, pos, targ, falloff, ac, dc, df, exp, cutoff
 
index, type, pos, targ, falloff, ac, dc, df, exp, cutoff

Revision as of 14:38, 9 May 2015

Name Type
shaderLamp(index, type, pos, targ, falloff, ac, dc, df, exp, cutoff) Execution


...


Examples

Spotlight

...

...

Point Light

...

...


Syntax Breakdown

Name Type Description
index integer (number) The index number to assign to the light source. Index starts at 0.
type integer (number) The type of light you want to create. 0 = spotlight. 1 = point light.
pos point (x, y, z) The position of the light source. Z controls how close the light source is to the screen. Lower value = closer.
targ point (x, y, z) The target position of the light source. The light travels from pos to targ. Only for point lighting; set {0,0,0} for spotlight.
falloff point (cnst, lnr, quad) The falloff controls the amount of light decay over distance. Please see here for more details on light attenuation.

index, type, pos, targ, falloff, ac, dc, df, exp, cutoff

Resources

Name Description
n/a A working .ved file, complete with resources. Check out the readme.txt file for instructions.