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: 03.07.2017
Помогите сделать статью лучше
Была ли эта статья полезной?
(или выберите слово/фразу и нажмите Ctrl+Enter