UE4 Directional Lights
2016-01-19 12:57
756 查看
Unreal
Engine 4.9
SHARE:
Types
of Lights
![](http://docs.unrealengine.com/latest/images/Engine/Rendering/LightingAndShadows/LightTypes/Directional/Directional_LightHeader.jpg)
On this page:
Directional
Light Properties
The Directional Light simulates light that is being emitted from a source that is infinitely far away. This means that all shadows cast by this light will be parallel, making this the ideal choice for simulating sunlight. The Directional Light
when placed can be set to one of three Mobilitysettings:
![](http://docs.unrealengine.com/latest/images/Engine/Rendering/LightingAndShadows/LightTypes/Directional/spacer.jpg)
![](http://docs.unrealengine.com/latest/images/Engine/Rendering/LightingAndShadows/LightTypes/Directional/Directional_LightStationary.png)
Static - (pictured left) which means that the light cannot be changed in game. This is the fastest method for rendering and allows for baked lighting.
Stationary - (also pictured left) which means the light will only have its shadowing and bounced lighting from static geometry baked by Lightmass, all other lighting will be dynamic. This setting also allows for the light to
change color and intensity in game, but, it does not move and allows partial baked lighting.
![](http://docs.unrealengine.com/latest/images/Engine/Rendering/LightingAndShadows/LightTypes/Directional/spacer.jpg)
![](http://docs.unrealengine.com/latest/images/Engine/Rendering/LightingAndShadows/LightTypes/Directional/Directional_LightMove.png)
Moveable - (pictured left) which means the light is totally dynamic and allows for dynamic shadowing. This is the slowest in terms of rendering but allows for the most flexibility during gameplay.
![](http://docs.unrealengine.com/latest/images/Engine/Rendering/LightingAndShadows/LightTypes/Directional/spacer.jpg)
Below you will see a representation of sunlight being cast through an opening in a roof.
![](http://docs.unrealengine.com/latest/images/Engine/Rendering/LightingAndShadows/LightTypes/Directional/spacer.jpg)
![](http://docs.unrealengine.com/latest/images/Engine/Rendering/LightingAndShadows/LightTypes/Directional/directional_001.jpg)
Directional Light
![](http://docs.unrealengine.com/latest/images/Engine/Rendering/LightingAndShadows/LightTypes/Directional/directional_002.jpg)
Directional Light Shadow Frustum
The left image shows just the light, the right image has its Shadow Frustum enabled in order to see that the Directional Light is casting parallel light rays.
![](http://docs.unrealengine.com/latest/images/Engine/Rendering/LightingAndShadows/LightTypes/Directional/Light_Direction.png)
Light Direction (pictured left) is indicated by an arrow that points in the direction the light will emit which is useful for placing and orientating your light as needed.
The properties of a Directional Light are broken up into 5 categories: Light, Light Shafts, Lightmass, Light Function and Cascaded Shadow Maps:
Unreal
Engine 4.9
SHARE:
Types
of Lights
![](http://docs.unrealengine.com/latest/images/Engine/Rendering/LightingAndShadows/LightTypes/Directional/Directional_LightHeader.jpg)
On this page:
Directional
Light Properties
The Directional Light simulates light that is being emitted from a source that is infinitely far away. This means that all shadows cast by this light will be parallel, making this the ideal choice for simulating sunlight. The Directional Light
when placed can be set to one of three Mobilitysettings:
![](http://docs.unrealengine.com/latest/images/Engine/Rendering/LightingAndShadows/LightTypes/Directional/spacer.jpg)
![](http://docs.unrealengine.com/latest/images/Engine/Rendering/LightingAndShadows/LightTypes/Directional/Directional_LightStationary.png)
Static - (pictured left) which means that the light cannot be changed in game. This is the fastest method for rendering and allows for baked lighting.
Stationary - (also pictured left) which means the light will only have its shadowing and bounced lighting from static geometry baked by Lightmass, all other lighting will be dynamic. This setting also allows for the light to
change color and intensity in game, but, it does not move and allows partial baked lighting.
![](http://docs.unrealengine.com/latest/images/Engine/Rendering/LightingAndShadows/LightTypes/Directional/spacer.jpg)
![](http://docs.unrealengine.com/latest/images/Engine/Rendering/LightingAndShadows/LightTypes/Directional/Directional_LightMove.png)
Moveable - (pictured left) which means the light is totally dynamic and allows for dynamic shadowing. This is the slowest in terms of rendering but allows for the most flexibility during gameplay.
![](http://docs.unrealengine.com/latest/images/Engine/Rendering/LightingAndShadows/LightTypes/Directional/spacer.jpg)
Below you will see a representation of sunlight being cast through an opening in a roof.
![](http://docs.unrealengine.com/latest/images/Engine/Rendering/LightingAndShadows/LightTypes/Directional/spacer.jpg)
![](http://docs.unrealengine.com/latest/images/Engine/Rendering/LightingAndShadows/LightTypes/Directional/directional_001.jpg)
Directional Light
![](http://docs.unrealengine.com/latest/images/Engine/Rendering/LightingAndShadows/LightTypes/Directional/directional_002.jpg)
Directional Light Shadow Frustum
The left image shows just the light, the right image has its Shadow Frustum enabled in order to see that the Directional Light is casting parallel light rays.
![](http://docs.unrealengine.com/latest/images/Engine/Rendering/LightingAndShadows/LightTypes/Directional/Light_Direction.png)
Light Direction (pictured left) is indicated by an arrow that points in the direction the light will emit which is useful for placing and orientating your light as needed.
The properties of a Directional Light are broken up into 5 categories: Light, Light Shafts, Lightmass, Light Function and Cascaded Shadow Maps:
Engine 4.9
SHARE:
Types
of Lights
![](http://docs.unrealengine.com/latest/images/Engine/Rendering/LightingAndShadows/LightTypes/Directional/Directional_LightHeader.jpg)
On this page:
Directional
Light Properties
The Directional Light simulates light that is being emitted from a source that is infinitely far away. This means that all shadows cast by this light will be parallel, making this the ideal choice for simulating sunlight. The Directional Light
when placed can be set to one of three Mobilitysettings:
![](http://docs.unrealengine.com/latest/images/Engine/Rendering/LightingAndShadows/LightTypes/Directional/spacer.jpg)
![](http://docs.unrealengine.com/latest/images/Engine/Rendering/LightingAndShadows/LightTypes/Directional/Directional_LightStationary.png)
Static - (pictured left) which means that the light cannot be changed in game. This is the fastest method for rendering and allows for baked lighting.
Stationary - (also pictured left) which means the light will only have its shadowing and bounced lighting from static geometry baked by Lightmass, all other lighting will be dynamic. This setting also allows for the light to
change color and intensity in game, but, it does not move and allows partial baked lighting.
![](http://docs.unrealengine.com/latest/images/Engine/Rendering/LightingAndShadows/LightTypes/Directional/spacer.jpg)
![](http://docs.unrealengine.com/latest/images/Engine/Rendering/LightingAndShadows/LightTypes/Directional/Directional_LightMove.png)
Moveable - (pictured left) which means the light is totally dynamic and allows for dynamic shadowing. This is the slowest in terms of rendering but allows for the most flexibility during gameplay.
![](http://docs.unrealengine.com/latest/images/Engine/Rendering/LightingAndShadows/LightTypes/Directional/spacer.jpg)
Below you will see a representation of sunlight being cast through an opening in a roof.
![](http://docs.unrealengine.com/latest/images/Engine/Rendering/LightingAndShadows/LightTypes/Directional/spacer.jpg)
![](http://docs.unrealengine.com/latest/images/Engine/Rendering/LightingAndShadows/LightTypes/Directional/directional_001.jpg)
Directional Light
![](http://docs.unrealengine.com/latest/images/Engine/Rendering/LightingAndShadows/LightTypes/Directional/directional_002.jpg)
Directional Light Shadow Frustum
The left image shows just the light, the right image has its Shadow Frustum enabled in order to see that the Directional Light is casting parallel light rays.
![](http://docs.unrealengine.com/latest/images/Engine/Rendering/LightingAndShadows/LightTypes/Directional/Light_Direction.png)
Light Direction (pictured left) is indicated by an arrow that points in the direction the light will emit which is useful for placing and orientating your light as needed.
Directional Light Properties
The properties of a Directional Light are broken up into 5 categories: Light, Light Shafts, Lightmass, Light Function and Cascaded Shadow Maps:
Light
Property | Description |
---|---|
Intensity | Total energy that the light emits. |
Light Color | The color that the light emits. |
Used As Atmosphere Sun Light | Uses this Directional Light to define the location of the sun in the sky. |
Affects World | Disables the light completely. Cannot be set at run time. To disable a light's effect during runtime, change its Visibility property. |
Casts Shadows | If the light casts shadows. |
Indirect Lighting Intensity | Scales the indirect lighting contribution from the light. |
Min Roughness | Min roughness effective for this light, used for softening specular highlights. |
Shadow Bias | Controls how accurate the shadows from this light are. |
Shadow Filter Sharpen | How much to sharpen shadow filtering for this light. |
Cast Translucent Shadows | Whether this light is allowed to cast dynamic shadows through translucent objects. |
Affect Dynamic Indirect Lighting | Whether the light should be injected into the Light Propagation Volume. |
Cast Static Shadows | Whether this light casts static shadows. |
Cast Dynamic Shadows | Whether this light casts dynamic shadows. |
Affect Translucent Lighting | Whether the light affects translucency or not. |
Light Shafts
Property | Description |
---|---|
Enable Light Shaft Occlusion | Whether to occlude fog and atmosphere inter scattering with the screen space blurred occlusion from this light. |
Occlusion Mask Darkness | How dark the occlusion masking is, a value of 1 is no darkening. |
Occlusion Depth Range | Everything close to the camera than this distance will occlude the light shafts. |
Enable Light Shaft Bloom | Whether to render light shaft bloom for this light. |
Bloom Scale | Scales the additive bloom color. |
Bloom Threshold | Scene color must be larger than this to create bloom in the light shafts. |
Bloom Tint | What color to tint the bloom coming from the light shafts. |
Light Shaft Override Direction | Can be used to make the light shafts come from somewhere other than the light's actually direction. |
Lightmass
Property | Description |
---|---|
Light Source Angle | Angle that the directional light's emissive surface extends relative to a receiver, affects penumbra sizes. |
Indirect Lighting Saturation | A value of 0 will completely desaturate this light in Lightmass, 1 will be unchanged. |
Shadow Exponent | Controls the falloff of shadow penumbras. |
Light Function
Property | Description |
---|---|
Light Function Material | The light function material to be applied to this light. |
Light Function Scale | Scales the light function projection. |
Light Function Fade Distance | The distance at which the light function should be completely faded to the value in Disabled Brightness. |
Disabled Brightness | Brightness factor applied to the light when the light function is specified but disabled, say from the property above: Light Function Fade Distance. |
Cascaded Shadow Maps
Property | Description |
---|---|
Dynamic Shadow Distance MovableLight | How far Cascaded Shadow Map dynamic shadows will cover for a movable light, measured from the camera. |
Dynamic Shadow Distance StationaryLight | How far Cascaded Shadow Map dynamic shadows will cover for a stationary light, measured from the camera. |
Num Dynamic Shadow Cascades | Number of cascades to split the view frustum into for the whole scene. |
Cascade Distribution Exponent | Controls whether the cascades are distributed closer to the camera (larget exponent) or further from the camera (smaller exponent). |
Cascade Transition Fraction | Proportion of the fade region between cascades. |
Shadow Distance Fadeout Fraction | Controls the size of the fade out region at the far extent of the dynamic shadow's influence. |
Use Inset Shadows for Movable Objects | (Stationary lights only) Whether to use per-object inset shadows for movable components, even though cascaded shadow maps are enabled. |
Engine 4.9
SHARE:
Types
of Lights
![](http://docs.unrealengine.com/latest/images/Engine/Rendering/LightingAndShadows/LightTypes/Directional/Directional_LightHeader.jpg)
On this page:
Directional
Light Properties
The Directional Light simulates light that is being emitted from a source that is infinitely far away. This means that all shadows cast by this light will be parallel, making this the ideal choice for simulating sunlight. The Directional Light
when placed can be set to one of three Mobilitysettings:
![](http://docs.unrealengine.com/latest/images/Engine/Rendering/LightingAndShadows/LightTypes/Directional/spacer.jpg)
![](http://docs.unrealengine.com/latest/images/Engine/Rendering/LightingAndShadows/LightTypes/Directional/Directional_LightStationary.png)
Static - (pictured left) which means that the light cannot be changed in game. This is the fastest method for rendering and allows for baked lighting.
Stationary - (also pictured left) which means the light will only have its shadowing and bounced lighting from static geometry baked by Lightmass, all other lighting will be dynamic. This setting also allows for the light to
change color and intensity in game, but, it does not move and allows partial baked lighting.
![](http://docs.unrealengine.com/latest/images/Engine/Rendering/LightingAndShadows/LightTypes/Directional/spacer.jpg)
![](http://docs.unrealengine.com/latest/images/Engine/Rendering/LightingAndShadows/LightTypes/Directional/Directional_LightMove.png)
Moveable - (pictured left) which means the light is totally dynamic and allows for dynamic shadowing. This is the slowest in terms of rendering but allows for the most flexibility during gameplay.
![](http://docs.unrealengine.com/latest/images/Engine/Rendering/LightingAndShadows/LightTypes/Directional/spacer.jpg)
Below you will see a representation of sunlight being cast through an opening in a roof.
![](http://docs.unrealengine.com/latest/images/Engine/Rendering/LightingAndShadows/LightTypes/Directional/spacer.jpg)
![](http://docs.unrealengine.com/latest/images/Engine/Rendering/LightingAndShadows/LightTypes/Directional/directional_001.jpg)
Directional Light
![](http://docs.unrealengine.com/latest/images/Engine/Rendering/LightingAndShadows/LightTypes/Directional/directional_002.jpg)
Directional Light Shadow Frustum
The left image shows just the light, the right image has its Shadow Frustum enabled in order to see that the Directional Light is casting parallel light rays.
![](http://docs.unrealengine.com/latest/images/Engine/Rendering/LightingAndShadows/LightTypes/Directional/Light_Direction.png)
Light Direction (pictured left) is indicated by an arrow that points in the direction the light will emit which is useful for placing and orientating your light as needed.
Directional Light Properties
The properties of a Directional Light are broken up into 5 categories: Light, Light Shafts, Lightmass, Light Function and Cascaded Shadow Maps:
Light
Property | Description |
---|---|
Intensity | Total energy that the light emits. |
Light Color | The color that the light emits. |
Used As Atmosphere Sun Light | Uses this Directional Light to define the location of the sun in the sky. |
Affects World | Disables the light completely. Cannot be set at run time. To disable a light's effect during runtime, change its Visibility property. |
Casts Shadows | If the light casts shadows. |
Indirect Lighting Intensity | Scales the indirect lighting contribution from the light. |
Min Roughness | Min roughness effective for this light, used for softening specular highlights. |
Shadow Bias | Controls how accurate the shadows from this light are. |
Shadow Filter Sharpen | How much to sharpen shadow filtering for this light. |
Cast Translucent Shadows | Whether this light is allowed to cast dynamic shadows through translucent objects. |
Affect Dynamic Indirect Lighting | Whether the light should be injected into the Light Propagation Volume. |
Cast Static Shadows | Whether this light casts static shadows. |
Cast Dynamic Shadows | Whether this light casts dynamic shadows. |
Affect Translucent Lighting | Whether the light affects translucency or not. |
Light Shafts
Property | Description |
---|---|
Enable Light Shaft Occlusion | Whether to occlude fog and atmosphere inter scattering with the screen space blurred occlusion from this light. |
Occlusion Mask Darkness | How dark the occlusion masking is, a value of 1 is no darkening. |
Occlusion Depth Range | Everything close to the camera than this distance will occlude the light shafts. |
Enable Light Shaft Bloom | Whether to render light shaft bloom for this light. |
Bloom Scale | Scales the additive bloom color. |
Bloom Threshold | Scene color must be larger than this to create bloom in the light shafts. |
Bloom Tint | What color to tint the bloom coming from the light shafts. |
Light Shaft Override Direction | Can be used to make the light shafts come from somewhere other than the light's actually direction. |
Lightmass
Property | Description |
---|---|
Light Source Angle | Angle that the directional light's emissive surface extends relative to a receiver, affects penumbra sizes. |
Indirect Lighting Saturation | A value of 0 will completely desaturate this light in Lightmass, 1 will be unchanged. |
Shadow Exponent | Controls the falloff of shadow penumbras. |
Light Function
Property | Description |
---|---|
Light Function Material | The light function material to be applied to this light. |
Light Function Scale | Scales the light function projection. |
Light Function Fade Distance | The distance at which the light function should be completely faded to the value in Disabled Brightness. |
Disabled Brightness | Brightness factor applied to the light when the light function is specified but disabled, say from the property above: Light Function Fade Distance. |
Cascaded Shadow Maps
Property | Description |
---|---|
Dynamic Shadow Distance MovableLight | How far Cascaded Shadow Map dynamic shadows will cover for a movable light, measured from the camera. |
Dynamic Shadow Distance StationaryLight | How far Cascaded Shadow Map dynamic shadows will cover for a stationary light, measured from the camera. |
Num Dynamic Shadow Cascades | Number of cascades to split the view frustum into for the whole scene. |
Cascade Distribution Exponent | Controls whether the cascades are distributed closer to the camera (larget exponent) or further from the camera (smaller exponent). |
Cascade Transition Fraction | Proportion of the fade region between cascades. |
Shadow Distance Fadeout Fraction | Controls the size of the fade out region at the far extent of the dynamic shadow's influence. |
Use Inset Shadows for Movable Objects | (Stationary lights only) Whether to use per-object inset shadows for movable components, even though cascaded shadow maps are enabled. |
相关文章推荐
- UE4 Dynamic Scene Shadows
- Request的getParameter和getAttribute方法的区别
- Request的getParameter和getAttribute方法的区别
- LabWindows/CVI入门之第二章:GUI开发
- Divide and conquer:Moo University - Financial Aid(POJ 2010)
- UIImageView
- 在iOS开发中关于(UIDevice、NSBundle、NSLocale)注意:凡是使用这些控件必须引入“UIKit.h”框架
- UISearchBar becomeFirstResponder不生效解决
- iOS 【UIKit-Quartz2D使用(绘制基本图形)】
- unique_ptr数组笔记
- ios7下面用autolayout报错类似 *** Assertion failure in -[XXX layoutSublayersOfLayer:], /SourceCache/UIKit/U
- IOS开发之UIScrollViewDelegate详解
- GCD多内核线程-之dispatch queue深入浅出
- 跟我学习dubbo-ActiveMQ的安装-单节点与使用(9)
- easyui初始化combobox
- Qt-直接将xxx.ui文件转化为ui_xxx.h文件
- 【转】iOS 上常用的两个功能:点击屏幕和return退出隐藏键盘和解决虚拟键盘挡住UITextField的方法
- UIScrollView的delaysContentTouches与canCancelContentTouches属性
- easyUi 验证组
- Druid中sql解析