Navigation
API > API/Runtime > API/Runtime/Engine
Determines how the refraction offset should be computed for the material.
| Name | ERefractionMode |
| Type | enum |
| Header File | /Engine/Source/Runtime/Engine/Classes/Engine/EngineTypes.h |
| Include Path | #include "Engine/EngineTypes.h" |
Syntax
enum ERefractionMode
{
RM_IndexOfRefraction,
RM_PixelNormalOffset,
RM_2DOffset,
RM_None,
RM_IndexOfRefractionFromF0,
}
Values
| Name | Remarks |
|---|---|
| RM_IndexOfRefraction | Refraction is computed based on the camera vector entering a medium whose index of refraction is defined by the Refraction material input. |
| RM_PixelNormalOffset | By default, when the root node refraction pin is unplugged, no refraction will appear. |
| RM_2DOffset | By default, when the root node refraction pin is unplugged, no refraction will appear. |
| RM_None | Refraction is disabled. |
| RM_IndexOfRefractionFromF0 | Refraction is computed based on the camera vector entering a medium whose index of refraction is defined by the material IOR evaluated from F0. |