Baltor Get started

Gallery / Godot shaders

Animated Truchet tile pattern

In your harnessGodot shaderMIT

Endless maze-like curves from Truchet tiles: each cell holds two quarter-circle arcs in one of two orientations chosen by a hash, so arcs join into continuous paths, with light running along them.

Render of Animated Truchet tile pattern
The render its check recorded in Godot 4.7.2, 256 by 256 pixels.

What it takes and gives

Shader type
canvas_item
Parameters
line_color (vec4 = 0.95, 0.85, 0.55, 1), background_color (vec4 = 0.1, 0.12, 0.2, 1), flow_color (vec4 = 1, 0.4, 0.3, 1), cells (float = 10), line_width (float = 0.12), flow_speed (float = 1), flow_spacing (float = 0.5), seed (int = 3)
Use it on
A ColorRect (or any CanvasItem) sized to the area to fill; UVs span 0 to 1 across it.
Result
A navy field covered in interlocking cream curves with red pulses travelling along them.
Renderers
compatibility: compiled and rendered, forward plus: not verified, mobile: not verified
Placement
res://baltor/godot_shaders/truchet_tiles_2d/

Limits. The flow coordinate is continuous within a tile but its direction can reverse between tiles, so pulses do not follow a whole path consistently.

Details

Kind
Godot shader
Engine
Godot 4.3 or later
Files
11 files, 103.9 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
Truchet tiling with quarter-circle arcs (Smith's variant), Hashed tile orientation, MurmurHash3 32-bit finalizer over prime-combined lattice coordinates as a hash
Tags
godot shader, canvas item, truchet, tiles, pattern, maze, procedural
Identity
library.supply.creative_originals.1e69f0776bce16694492c265.9a37c64d3f6d48c5
Version
9a37c64d3f6d48c59ab4f2a622fbc55da9c4d0cfca71eaab5753c6ea41907625

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.