Choose your operating system:
Windows
macOS
Linux
Module |
|
Header |
/Engine/Source/Runtime/SlateCore/Public/Rendering/RenderingCommon.h |
Include |
#include "Rendering/RenderingCommon.h" |
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,
}
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 |
Effects that can be applied to elements when rendered.
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