ESlateShader

Shader types.

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,
}

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

Remarks

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

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss