Baltor Get started

Gallery / Godot shaders

Shaped vignette with colour and focus point

In your harnessGodot shaderMIT

Darken or tint the screen toward its edges with control over size, softness, roundness, aspect, colour and the point it centres on.

Render of Shaped vignette with colour and focus point
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), vignette_color (vec4 = 0.02, 0, 0.04, 1), intensity (float = 0.75), radius (float = 0.55), softness (float = 0.45), roundness (float = 1), focus_x (float = 0.5), focus_y (float = 0.5)
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 soft, very dark purple edges and a clear centre.
Renderers
compatibility: compiled and rendered, forward plus: not verified, mobile: not verified
Placement
res://baltor/godot_shaders/post_vignette/

Limits. A colour blend, not an exposure change: bright highlights at the edges are flattened toward the 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, 78.6 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
Distance mask with adjustable roundness and aspect, Colour blend vignette
Tags
godot shader, spatial, post-process, vignette, framing, camera, mood, full-screen
Identity
library.supply.creative_originals.06ad3a62cb82a5840e81898a.471de0ae0ef83407
Version
471de0ae0ef8340766f419f43a4eda9447c34abcbe18b4c2a1642edff2d13050

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.