ESlateShader

Shader types.

Choose your operating system:

Windows

macOS

Linux

References

Module

SlateCore

Header

/Engine/Source/Runtime/SlateCore/Public/Rendering/RenderingCommon.h

Include

#include "Rendering/RenderingCommon.h"

Syntax

enum ESlateShader
{
    Default          = 0,
    Border           = 1,
    GrayscaleFont    = 2,
    ColorFont        = 3,
    LineSegment      = 4,
    Custom           = 5,
    PostProcess      = 6,
    RoundedBox       = 7,
}

Values

Name

Description

Default

The default shader type. Simple texture lookup

Border

Border shader

GrayscaleFont

Grayscale font shader. Uses an alpha only texture

ColorFont

Grayscale font shader. Uses an color 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.

Remarks

Shader types.

mirrored in the shader file If you add a type here you must also implement the proper shader type (TSlateElementPS). See SlateShaders.h