Baltor Get started

Gallery / Godot shaders

Lift, gamma and gain colour grading

In your harnessGodot shaderMIT

Grade the final image like a colour corrector: lift for shadows, gamma for midtones, gain for highlights as colours, plus contrast, saturation, vibrance, white balance temperature and tint.

Render of Lift, gamma and gain colour grading
The render its check recorded in Godot 4.7.2, 256 by 256 pixels.

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), lift (vec4 = 0.04, 0.02, 0.08, 1), gamma (vec4 = 0.5, 0.5, 0.52, 1), gain (vec4 = 1, 0.96, 0.88, 1), contrast (float = 1.1), saturation (float = 1.1), vibrance (float = 0.2), temperature (float = 0.15) and 1 more
Use it on
A MeshInstance3D with a 2 x 2 QuadMesh, material.tres as its material override and a large extra cull margin, as in demo.tscn.
Result
The scene with slightly purple shadows, warm highlights and a little more punch.
Renderers
compatibility: compiled and rendered, forward plus: not verified, mobile: not verified
Placement
res://baltor/godot_shaders/post_color_grading/

Limits. Grades display-referred colour after tonemapping, not scene-linear values, so extreme settings clip. No lookup table input; for LUT grading use Godot's colour correction texture. 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, 62.3 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
Lift, gamma and gain grading, Contrast around a pivot, Saturation and vibrance, Approximate white balance multipliers
Tags
godot shader, spatial, post-process, color grading, lift gamma gain, white balance, cinematic, full-screen
Identity
library.supply.creative_originals.93ba3d985bdd794fe6c6be45.8339dcaf5a918699
Version
8339dcaf5a9186990fce3693b5073df46f144f38d67095f22ecbb038a115d85f

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.