RadialPointLight Class
The RadialPointLight class is used to render a light with a full 360 degree range. This type of light has a limited radius. This limited radius helps the engine perform less shadow calculations. When calculating shadows from this type of light they are calculated from a single point
Constructor
RadialPointLight
(
-
[parameters]
Parameters:
-
[parameters]
Object optionalParameters is an object that contains the RadialPointLights properties
-
[x=0]
Number optionalX position
-
[y=0]
Number optionalY position
-
[radius=200]
Number optionalRadius of the light
-
[colour=new LE.Colour(255, 255, 255, 255)]
Colour optionalColour, default is white
-
[intensity=0.1]
Number optionalLight intensity/brightness
-
[shader=LE.LightShaders.POINT_LIGHT]
Number optionalIndex of the shader used during rendering
-
Properties
intensity
Number
Default: 0.1
radius
Number
Default: 200
shader
Number
Default: LE.LightShaders.RADIAL_POINT_LIGHT
type
String
Automatically generated on creation
x
Number
Default: 0
y
Number
Default: 0