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
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.

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