Navigation
API > API/Runtime > API/Runtime/Engine
MegaLights Shadow type for a light component.
| Name | EMegaLightsShadowMethod::Type |
| Type | enum |
| Header File | /Engine/Source/Runtime/Engine/Classes/Engine/EngineTypes.h |
| Include Path | #include "Engine/EngineTypes.h" |
Syntax
namespace EMegaLightsShadowMethod
{
enum Type
{
Default,
RayTracing,
VirtualShadowMap,
}
}
Values
| Name | Remarks |
|---|---|
| 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. |