Shader functions are available in Geometry Dash 2.2 and later. They apply full-screen post-processing effects by generating the corresponding shader triggers. Every shader function returns aDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/g-js-api/G.js/llms.txt
Use this file to discover all available pages before exploring further.
GJsObject — you must call .add() on it to place the trigger in the level.
For a narrative introduction to shaders and layering see Particles and Shaders.
sepia
Applies a sepia-tone (warm brownish tint) effect to the screen.Effect intensity from
0 (none) to 1 (full sepia).Seconds to transition to the target strength.
GJsObject — call .add().
hue_shift
Rotates all hues on the screen by the given angle.Hue rotation in degrees (0–360).
Seconds to transition to the target hue shift.
GJsObject — call .add().
grayscale
Desaturates the screen toward grayscale.Desaturation amount from
0 (original color) to 1 (fully grayscale).Seconds to transition.
GJsObject — call .add().
pixelate
Applies a pixelation effect, making the screen look like a lower-resolution image.Pixel size from
0 (no effect) to 1 (maximum pixelation).Seconds to transition.
GJsObject — call .add().
chromatic
Separates the red, green, and blue color channels to create a chromatic aberration effect.Channel separation amount (0–1).
Seconds to transition.
GJsObject — call .add().
glitch
Adds a horizontal scan-line glitch distortion to the screen.Glitch intensity (0–1).
Seconds to transition.
GJsObject — call .add().
bulge
Applies a lens-bulge (fisheye) distortion to the center of the screen.Bulge amount (0–1). Negative values create a concave (pinch) effect.
Seconds to transition.
GJsObject — call .add().
split_screen
Splits the screen into two offset halves, creating a split-screen visual artifact.Split offset amount (0–1).
Seconds to transition.
GJsObject — call .add().
shader_layers
Creates a Shader Layers trigger that controls how multiple shaders are composited together. Pass an array of layer strings produced byshader_layer.
Array of layer strings returned by
shader_layer(layer, strength).GJsObject — call .add().
shader_layer
Creates a single shader layer descriptor string to be included in ashader_layers trigger.
Layer index (0–15).
Strength of this layer (0–1).
string — a layer descriptor to pass into shader_layers.