Difference between revisions of "ShaderLamp (CMS)"
From The Official Visionaire Studio: Adventure Game Engine Wiki
Line 7: | Line 7: | ||
− | + | ... | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
Revision as of 14:28, 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 | ... | ... |
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. |