LightSpot Class
This class is used to create spot light sources. It is similar to the omni light source, but id does not cast shadows ans is rendered very fast in a bunch of four.
LightSpot Class
This class inherits from LightMembers
LightSpot (vec4 color, float radius)
Constructor. Creates a new spot light source with given radii and a given color.Arguments
- vec4 color - Color of the new light source.
- float radius - Radii of the new light source.
float getRadius ()
Returns the current radii of the omni light source.Return value
Radii of the light source.void setRadius (float radius)
Updates the current radii of the omni light source.Arguments
- float radius - Radii of the new light source.
Last update: 2017-07-03
Help improve this article
Was this article helpful?
(or select a word/phrase and press Ctrl+Enter)