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
注意! 这个版本的文档是过时的,因为它描述了一个较老的SDK版本!请切换到最新SDK版本的文档。
注意! 这个版本的文档描述了一个不再受支持的旧SDK版本!请升级到最新的SDK版本。

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