This page has been translated automatically.
Programming
Fundamentials
Setting Up Development Environment
UnigineScript
High-Level Systems
C++
C#
UUSL (Unified UNIGINE Shader Language)
File Formats
Rebuilding the Engine and Tools
GUI
Double Precision Coordinates
API
Bounds-Related Classes
Containers
Controls-Related Classes
Core Library
Engine-Related Classes
GUI-Related Classes
Node-Related Classes
Pathfinding-Related Classes
Physics-Related Classes
Plugins-Related Classes
Rendering-Related Classes
Utility Classes
注意! 这个版本的文档是过时的,因为它描述了一个较老的SDK版本!请切换到最新SDK版本的文档。
注意! 这个版本的文档描述了一个不再受支持的旧SDK版本!请升级到最新的SDK版本。

Lighting

While the 3D geometry defines the shape of your content, lighting is the basis of every virtual scene defining colors and final look of your objects. UNIGINE features the following types of the light sources:

  • Dynamic lighting is a customizable solution providing real-time lighting calculation. This advanced technique provides very realistic lighting as it can illuminate dynamic objects. Light sources themselves can be moved or changed in real time (for example, turned on and off). As the most objects in the scene are rendered in the deferred pass, dynamic light sources won't cause big performance losses. All UNIGINE light source are dynamic except for the environment probe, which can be either dynamic or static.
  • Static (precomputed) lighting is an efficient and utile solution for lighting of relatively static scenes. It allows dropping the most of lighting computations, leaving only simple texture lookups to be performed at the rendering time. Still, this method still only roughly simulate the lighting for the moving objects entering the scene and sometimes lack physical accuracy registered by the eye.
Light Source Image Dynamic Mode Static Mode
LightOmni (omnidirectional point light) Emits light from a point source in all directions. -
LightProj (projected light) Emits light from a single point forming a focused beam aimed in a specific direction. -
LightWorld (sun light) Casts parallel beams onto the scene from an infinitely remote point. -
LightEnvironmentProbe (reflection probe) Grabs a cubemap each frame thus providing objects in the scene with dynamic reflections from a point source in all directions. Uses a prebaked cubemap to provide objects in the scene with reflections from a point source in all directions.
Last update: 2017-07-03
Build: ()