ShaderLamp (CMS)
From The Official Visionaire Studio: Adventure Game Engine Wiki
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. |