Version: 
Back to list

Scene :: createSpotLight

Synopsis

   Create a new spot light

GUI Dialog

   

Script function

   scene.createSpotLight(color, power[, position[, direction[, cutoff]]]) -> light

Parameters

   color (Color) : Color of the light
   power (Double) : Intensity of the light
   position (Point3[optional] : Relative position of the light
   direction (Vector3[optional] : Relative direction of the light
   cutoff (Angle[optional] : Cutoff angle of the spot light

Return value

   light (SpotLight) : The created spot light