Navigation
API > API/Runtime > API/Runtime/SlateCore
Shader types. NOTE: mirrored in the shader file If you add a type here you must also implement the proper shader type (TSlateElementPS). See SlateShaders.h
| Name | ESlateShader |
| Type | enum |
| Header File | /Engine/Source/Runtime/SlateCore/Public/Rendering/RenderingCommon.h |
| Include Path | #include "Rendering/RenderingCommon.h" |
Syntax
enum ESlateShader
{
Default = 0,
Border = 1,
GrayscaleFont = 2,
ColorFont = 3,
LineSegment = 4,
Custom = 5,
PostProcess = 6,
RoundedBox = 7,
SdfFont = 8,
MsdfFont = 9,
}
Values
| Name | Remarks |
|---|---|
| Default | The default shader type. Simple texture lookup |
| Border | Border shader |
| GrayscaleFont | Grayscale font shader. Uses an alpha only texture |
| ColorFont | Color font shader. Uses an sRGB texture |
| LineSegment | Line segment shader. For drawing anti-aliased lines |
| Custom | For completely customized materials. Makes no assumptions on use |
| PostProcess | For post processing passes |
| RoundedBox | Rounded Box shader. |
| SdfFont | Signed distance field font shader |
| MsdfFont | Multi-channel signed distance field font shader |