-
Notifications
You must be signed in to change notification settings - Fork 0
Create a Light
Nathan Goodwin edited this page Oct 5, 2019
·
1 revision
Creating a light only requires passing a few parameters to the spnLight()
function.
Input parameters:
spnLight(type, color, x, y, z, intensity, shadow, lightName)
-
type
- ambient/dynamic/point - the type of light you want to create -
color
- color - the color of the light you want to create -
x
- number - position of the light on the x axis -
y
- number - position of the light on the y axis -
z
- number - position of the light on the z axis -
intensity
- number - the intensity of the light -
shadow
- true/false - enables or disables the light shadow casting