Baltor Get started

Gallery / Godot shaders

Flowing lava from domain-warped noise

In your harnessGodot shaderMIT

Procedural lava with a dark cooled crust floating on glowing molten rock, built from twice domain-warped fractal noise that slowly flows, with emission only on the hot parts.

Render of Flowing lava from domain-warped noise
The render its check recorded in Godot 4.7.2, 256 by 256 pixels.

What it takes and gives

Shader type
spatial
Parameters
crust_color (vec4 = 0.07, 0.05, 0.05, 1), lava_dark (vec4 = 0.62, 0.07, 0.02, 1), lava_bright (vec4 = 1, 0.66, 0.16, 1), scale (float = 3), flow_speed (float = 0.12), flow_angle_degrees (float = 20), warp_strength (float = 1.8), crust_amount (float = 0.5) and 2 more
Use it on
A mesh with UV coordinates.
Result
Black crust plates drifting over swirling orange glowing lava.
Renderers
compatibility: compiled and rendered, forward plus: not verified, mobile: not verified
Placement
res://baltor/godot_shaders/lava_domain_warp/

Limits. Twelve fBm evaluations of four octaves per pixel make it one of the heavier shaders here; lower octaves for mobile. Flat: no displacement or normal relief. UV seams show where the mesh UVs are discontinuous.

Details

Kind
Godot shader
Engine
Godot 4.3 or later
Files
11 files, 79.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
Domain warping of fractional Brownian motion (warp of a warp), Value noise with quintic interpolation and fractional Brownian motion, Threshold crust mask with smoothstep
Tags
godot shader, spatial, lava, domain warping, fbm, emission, procedural
Identity
library.supply.creative_originals.8bea94e896d5178ee7f980ea.f9035b004c2421a6
Version
f9035b004c2421a6d6795b3f0ae176984f383618976ed71a019d7642c0fb919b

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.