ESlateDrawEffect

Effects that can be applied to elements when rendered.

Windows
MacOS
Linux

References

Module

SlateCore

Header

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

Include

#include "Rendering/RenderingCommon.h"

Syntax

enum ESlateDrawEffect
{
    None                  = 0,
    NoBlending            = 1 << 0,
    PreMultipliedAlpha    = 1 << 1,
    NoGamma               = 1 << 2,
    InvertAlpha           = 1 << 3,
    NoPixelSnapping       = 1 << 4,
    DisabledEffect        = 1 << 5,
    IgnoreTextureAlpha    = 1 << 6,
    ReverseGamma          = 1 << 7,
}

Values

Name

Description

None

No effect applied

NoBlending

Advanced: Draw the element with no blending

PreMultipliedAlpha

Advanced: Blend using pre-multiplied alpha. Ignored if NoBlending is set.

NoGamma

Advanced: No gamma correction should be done

InvertAlpha

Advanced: Change the alpha value to 1 - Alpha.

NoPixelSnapping

Disables pixel snapping

DisabledEffect

Draw the element with a disabled effect

IgnoreTextureAlpha

Advanced: Don't read from texture alpha channel

ReverseGamma

Advanced: Existing Gamma correction should be reversed

Remarks

Effects that can be applied to elements when rendered. Note: New effects added should be in bit mask form 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