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.

Omni Light Source

The omni light is a point source emitting light in all directions (360 degrees) and realistically reproducing shadow cast. They serve to simulate the sources with bright centre and equal roll-off of intensity. As the example of such a light can be mentioned an ordinary household lightbulb, uncovered and hanging from a ceiling. This type of sources proves useful for general lighting purposes in the indoors scenes, because of its nondirectional qualities.

Please note that as omni light uses cubemap modulation, the shadowing by this source requires six passes and can be pretty expensive.

Screenshot of a scene with an omni light

Features

The omni light source has the following distinguishing features:

Radius

Usually omnidirectional lights are spherical, but Unigine also allows to shape ellipsoid source for more exact and flexible approximation of the prolonged spaces. Defining separate radius values along three axes can assure different locations fitting:

Screenshot of a scene with an ellipsoid omni light

Texture Modulation

Besides providing the uniformly colored light, the omni light source can project a specified cubemap texture. Such modulations allows to re-light the affected scene area in a new way at the same performance cost, create variegated light scattering patterns and, for example, imitate several light sources.

Screenshot of a scene with an omni light with cubemap modulation

See also

Last update: 03.07.2017
Build: ()