This page has been translated automatically.
UnigineScript
The Language
Core Library
Engine Library
Node-Related Classes
GUI-Related Classes
Plugins Library
High-Level Systems
Samples
C++ API
API Reference
Integration Samples
Usage Examples
C++ Plugins
Content Creation
Materials
Unigine Material Library
Tutorials
Warning! This version of documentation is OUTDATED, as it describes an older SDK version! Please switch to the documentation for the latest SDK version.
Warning! This version of documentation describes an old SDK version which is no longer supported! Please upgrade to the latest SDK version.

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 Light

Members


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
Build: ()