Baltor Get started

Gallery / Godot shaders

Tilt-shift miniature effect

In your harnessGodot shaderMIT

Make a scene look like a miniature model: a horizontal band stays sharp while blur grows above and below it, with boosted saturation and contrast as in tilt-shift photographs.

Render of Tilt-shift miniature effect
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), focus_center (float = 0.55), focus_width (float = 0.12), blur_ramp (float = 0.3), max_blur_pixels (float = 8), saturation (float = 1.35), contrast (float = 1.1)
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 a sharp middle band and blurred top and bottom, colours boosted like a toy model.
Renderers
compatibility: compiled and rendered, forward plus: not verified, mobile: not verified
Placement
res://baltor/godot_shaders/post_tilt_shift/

Limits. Blur ignores depth, so foreground objects crossing the sharp band stay sharp where they should not. Works best with high, tilted camera angles. 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
Screen-position based blur band, Golden-angle disc blur, Saturation and contrast boost
Tags
godot shader, spatial, post-process, tilt shift, miniature, blur, photography, full-screen
Identity
library.supply.creative_originals.0b7e2ec114274eeb387fecee.462ff4fe480ca673
Version
462ff4fe480ca673ba70f1ee5e5617293b92830c6d17bff8d3d31e09d9ac5e3c

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.