Gradient map recolouring
In your harnessGodot shaderMIT
Recolour the scene by mapping its luminance through a gradient texture (duotone, tritone or any ramp), with contrast and offset controls and a mix with the original colours.

What it takes and gives
- Shader type
- spatial
- Render modes
- unshaded, cull_disabled, depth_test_disabled, depth_draw_never, skip_vertex_transform, fog_disabled
- Parameters
- screen_texture (sampler2D), gradient (sampler2D), contrast (float = 1.2), offset (float = 0), mix_amount (float = 1), reverse (bool = no)
- Use it on
- A MeshInstance3D with a 2 x 2 QuadMesh,
material.tresas its material override and a large extra cull margin, as indemo.tscn., A gradient texture forgradient(the bundled material has one). - Result
- The scene recoloured into violet shadows, pink midtones and pale gold highlights.
- Renderers
- compatibility: compiled and rendered, forward plus: not verified, mobile: not verified
- Placement
- res://baltor/godot_shaders/post_gradient_map/
Limits. All hue information is discarded at full mix; objects of equal brightness become the same colour. The pass reads Godot's screen texture after opaque geometry, so transparent objects drawn after it are not processed and its order among other transparent passes is not controlled.
Details
- Kind
- Godot shader
- Engine
- Godot 4.3 or later
- Files
- 11 files, 59.7 KB
- Licence
- MIT
- Declared effects
- reads files, runs commands
- Checked with
- Godot 4.7.2, opengl3 compatibility (Mesa llvmpipe, Xvfb)
- Checks
- contract static, engine run, engine log clean, shader in scene, capture written, render not uniform, shader changes pixels
- Techniques
- Luminance to gradient lookup (gradient map), Contrast and offset before lookup
- Tags
- godot shader, spatial, post-process, gradient map, duotone, color grading, stylized, full-screen
- Identity
library.supply.creative_originals.5e9081bd1a21401a34fae876.6d986110720bcc1d- Version
6d986110720bcc1d730420426cf3b145a431a6ef8a168bb3025b5c916c85e301
The version is the SHA-256 of the item your harness downloads; every file in it names its own checksum.
Something wrong with this item, its rights or its safety? Report it on the support page, or from your harness after a download.


