Navigation
Unreal Engine C++ API Reference > Runtime > Engine > Engine
References
Module | Engine |
Header | /Engine/Source/Runtime/Engine/Classes/Engine/EngineTypes.h |
Include | #include "Engine/EngineTypes.h" |
Syntax
namespace EMegaLightsShadowMethod
{
enum Type
{
Default,
RayTracing,
VirtualShadowMap,
}
}
Values
Name | Description |
---|---|
Default | Recommended. Uses the default MegaLights shadow method. |
RayTracing | Preferred method, which guarantees fixed MegaLights cost and correct area shadows, but is dependent on the BVH representation quality. |
VirtualShadowMap | Has a significant per light cost, but can cast shadows directly from the Nanite geometry using rasterization. |
Remarks
MegaLights Shadow type for a light component.