This page has been translated automatically.
视频教程
界面
要领
高级
实用建议
专业(SIM)
UnigineEditor
界面概述
资源工作流程
版本控制
设置和首选项
项目开发
调整节点参数
Setting Up Materials
设置属性
Sandworm
使用编辑器工具执行特定任务
如何擴展編輯器功能
嵌入式节点类型
Nodes
Objects
Effects
Decals
光源
Geodetics
World Nodes
Sound Objects
Pathfinding Objects
Players
编程
基本原理
搭建开发环境
使用范例
C++
C#
UnigineScript
UUSL (Unified UNIGINE Shader Language)
Plugins
File Formats
材质和着色器
Rebuilding the Engine Tools
GUI
双精度坐标
应用程序接口
Containers
Common Functionality
Controls-Related Classes
Engine-Related Classes
Filesystem Functionality
GUI-Related Classes
Math Functionality
Node-Related Classes
Objects-Related Classes
Networking Functionality
Pathfinding-Related Classes
Physics-Related Classes
Plugins-Related Classes
IG Plugin
CIGIConnector Plugin
Rendering-Related Classes
创建内容
内容优化
材质
Material Nodes Library
Miscellaneous
Input
Math
Matrix
Textures
Art Samples
Tutorials
注意! 这个版本的文档是过时的,因为它描述了一个较老的SDK版本!请切换到最新SDK版本的文档。
注意! 这个版本的文档描述了一个不再受支持的旧SDK版本!请升级到最新的SDK版本。

光源

This section covers types of dynamic light sources and lights-related concepts.本节介绍动态光源的类型和与照明有关的概念。

Light Sources光源#

To create a light source, open the Menu bar and click Create -> Lights.要创建光源,请打开菜单栏,然后​​单击Create -> Lights

Light sources provide direct real-time lighting which is used for shading on the Deferred and Forward passes of the Rendering Sequence.光源提供直接的实时照明,用于在 Deferred Forward 渲染序列的顺序。

The light's Mode defines the impact of the light source on the light baking process and affects rendering of shadows from it:灯光的 模式 定义光源对灯光烘焙过程的影响,并影响光源的阴影渲染:

  • Dynamic light sources provide direct real-time lighting only and are turned off while light baking is being calculated. Such light sources provide dynamic shadows only. 动态光源仅提供直接的实时照明,并且在计算光烘焙时将其关闭。此类光源仅提供动态阴影。
  • Static lights sources contribute to baking of indirect lighting and remain enabled all the time providing direct real-time lighting. When baked, such light sources are not to be moved; otherwise, this option can cause lack of physical accuracy registered by the eye. Static light sources are able to provide both cached and mixed shadows. 静态光源有助于间接照明的烘焙,并始终保持启用状态,以提供直接的实时照明。烘烤时,请勿移动此类光源。否则,此选项可能会导致眼睛看不到实际的准确性。静态光源能够提供缓存的阴影和混合的阴影。

World LightWorld Light#

The 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 light of celestial bodies, such as the Sun and the Moon. World Light是一种无限遥远的光源,可以将正交投影的光束投射到场景上。这种光投射的阴影是平行的,可以对太阳和月亮等天体的光进行逼真的模拟。

The World Light takes part in the Scattering simulation. World Light参与了 Scattering 模拟。

Omni LightOmni Light#

The Omni Light is a point source emitting light in all directions and realistically reproducing shadow cast. This type of light serves to simulate light sources with bright center and equal roll-off of intensity. Omni Light proves useful for general lighting purposes in indoor scenes because of its nondirectional qualities. Omni Light是一种点光源,它可以向各个方向发光,并可以真实地再现阴影投射。这种类型的光用于模拟中心明亮且强度均匀下降的光源。 Omni Light具有非定向性,因此被证明可用于室内场景中的常规照明。

Projected LightProjected Light#

The Projected Light source casts light from a single point forming a focused beam aimed in a specific direction. This type of light is visualized in a form of a pyramid. Due to its form, it is versatile and can be conveniently used to simulate the numerous light emitting sources: for example, car headlights, flash light, or street lamps. Projected Light光源从单个点投射光线,从而形成聚焦在特定方向的聚焦光束。这种类型的光以金字塔的形式可视化。由于其形式,它是通用的,可以方便地用于模拟多种发光源:例如汽车前灯,闪光灯或路灯。

Area LightsArea Lights#

By default, light sources are represented by a point that emits lighting. Both Omni and Projected light sources have the Shape settings intended to define the shape of an area light source. Area light sources provide wider light spots and correct specular highlights on geometry.默认情况下,光源由发光的点表示。 Omni Projected 光源均具有 Shape设置 ,用于定义面光源的形状。面光源可提供更宽的光斑并在几何体上提供正确的镜面反射高光。

The following shapes are available:可以使用以下形状:

  • Sphere Sphere
  • Capsule Capsule
  • Rectangle Rectangle
注意
Soft shadows from area lights are simulated by using the Penumbra settings.使用 Penumbra 设置模拟区域灯光的柔和阴影。

Emissive Objects发射物体#

The mesh_base, decal_base and particles_base materials has support for the Emission feature, so any geometry can be made a bright surface. However, it will not illuminate the environment, only glow is rendered by default. Lighting from an emissive object can be baked into GI and computed in real time by using Screen-Space GI. mesh_base材质支持 Emission 功能,因此可以将任何几何形状制成明亮的表面。但是,它不会照亮环境,默认情况下仅渲染光晕。可以使用 Screen-Space GI 将来自发光物体的照明烘焙到GI中并进行实时计算。

See Also也可以看看#

最新更新: 2023-06-23
Build: ()