Build-in effects - Inverted

Last edited 2026-02-27


The effect returns inverted colors from the main texture.



Input data:

  • Self (Main texture of the object/layer, depending on where you apply the effect; contains information about Red, Green, Blue, Alpha)


Output data:

  • Render (Red, Green, Blue, Alpha colors that will be displayed on the screen)


Example written in pseudocode:
load float4 Self;                                        // LOAD main texture

float4 Render;                                        // Create an empty variable

float3 Const = float3(1.0f, 1.0f, 1.0f);                // Assign a const vector that will store the R, G, B values of 1, 1, 1.


Render.rgb = Const - Self.rgb;                        // Assign the result of subtracted Const and Self to the colors R, G, B
Render.a = Self.a;                                        // Assign the Alpha color from Self to Alpha

return Render;                                        // Return the Render




The meaning of colors in the Type column:

Color

Description

Green

This effect works in this runtime.

Yellow

It is unknown whether it works (requires confirmation)

Red

This effect does not work in this runtime.


Effect

Description

Windows 

(Software / DirectDraw)

Windows (Direct3D 8)

Windows (Direct3D 9)

Windows (Direct3D 11)

Android (OpenGL ES)

iOS

(OpenGL ES)

macOS (OpenGL ES)

HTML5

Haxe

(Linux)

Haxe

(WebGL)

Inverted

Self colors are inverted

Yes

Yes

Yes

Yes

Yes

Yes

Yes

Unknown

Unknown

Unknown

Created with the Personal Edition of HelpNDoc: Easily create CHM Help documents