Monochrome
Build-in effects - Monochrome
Last edited 2026-02-27
The effect returns the luminance from the colors of 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 Mono = float3(Self.rgb) * float3(0.299f, 0.587f, 0.114f); // Assign the luminance value from Self to a new variable
Render.rgb = Mono.r + Mono.g + Mono.b // Assign the sum of luminance from the colors R, G, B
Render.a = Self.a; // Assign the Alpha color from Self to Alpha
return Render; // Return the Render
Examples of recreation effects created by the community:
- MonoChrome Shader Example by (Unknown Author); It does the same shader.
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) |
|
From Self colors, luminance is returned |
Yes |
Yes |
Yes |
Yes |
Yes |
Yes |
Yes |
Unknown |
Unknown |
Unknown |
Created with the Personal Edition of HelpNDoc: Experience the power of a responsive website for your documentation