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
Usage Examples
C++ API
API Reference
Integration Samples
Usage Examples
C++ Plugins
Migration
Migrating to UNIGINE 2.0
C++ API Migration
Migrating from UNIGINE 2.0 to UNIGINE 2.1
Внимание! Эта версия документация УСТАРЕЛА, поскольку относится к более ранней версии SDK! Пожалуйста, переключитесь на самую актуальную документацию для последней версии SDK.
Внимание! Эта версия документации описывает устаревшую версию SDK, которая больше не поддерживается! Пожалуйста, обновитесь до последней версии SDK.

World Light Source

A world light is an infinitely remote light source casting orthographically projected beams onto the scene. The shadows cast by this light are parallel, which provides a realistic simulation of the sunlight.

See Also

Adding World Light

To add a world light to the scene via UnigineEditor, do the following:

  1. Run UnigineEditor.
  2. On the Menu bar, click Create -> Light -> World.

  3. Place the world light somewhere in the world.
    Notice
    The physical position of the source is not important, only the direction matters, as it defines the shadow casting orientation. To change the light's direction use the rotation manipulator.
  4. Adjust the world light's settings.

World Light Settings

The following set of options is available for the world light. Detailed information on the parameters can be found in the Light Sources Parameters article.

Light Settings

Force deferred lighting Forces all lights to be deferred.
Light Sets the light mask.
Viewport Sets the viewport mask for the light.
Color Sets the light color in the RGBA format. The color defines both the plausibility of virtual representation and its aesthetic component.
Multiplier Sets the light color multiplier, which provides fine control over color intensity of the emitted light:
  • The minimum value of 1 corresponds to the least saturated light color.
  • The maximum value of 100 equals the most bright and intense color.
Diffuse scale Sets the light diffuse component intensity. The scale varies in range from 0 to 2.
Normal scale Sets the light normal component intensity. The scale varies in range from 0 to 2.
Specular scale Sets the light specular component intensity responsible for creating highlights from incoming light on a surface. The scale varies in range from 0 to 2.
Specular power Sets the light specular power controlling the breadth of highlights on the illuminated objects.
  • The minimum value of 0 corresponds to the most pointed specular highlights.
  • The maximum value of 2 equals broad and more diffuse highlights.
Scattering Enables the light scattering.
Last update: 03.07.2017
Build: ()