Baltor Get started

Gallery / Godot shaders

Radial zoom blur toward a point

In your harnessGodot shaderMIT

Streak the image toward or away from a screen point like a fast zoom or a speed burst, with no blur at the centre, adjustable strength, sample count and an optional brightness boost of the streaks.

Render of Radial zoom blur toward a 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), center_x (float = 0.5), center_y (float = 0.5), strength (float = 0.12), samples (int = 20), clear_radius (float = 0.15), streak_boost (float = 0.15)
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 streaking outward from the middle with the centre still sharp.
Renderers
compatibility: compiled and rendered, forward plus: not verified, mobile: not verified
Placement
res://baltor/godot_shaders/post_radial_zoom_blur/

Limits. Streaks only sample what is on screen, so content entering from off screen does not streak in. Very high strength with few samples shows stepping. 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, 72.1 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
Radial blur by sampling toward a centre, Per-pixel jittered sample offsets, MurmurHash3 32-bit finalizer over prime-combined lattice coordinates as a hash
Tags
godot shader, spatial, post-process, zoom blur, radial blur, speed, motion, full-screen
Identity
library.supply.creative_originals.6e5d5cebf8cc7de695dd1117.522e30c44d2bf3e1
Version
522e30c44d2bf3e1670a5fffa05648d9eed1f2eb9bbb2a3d309f1c0c6acbaced

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.