fantasyLava.shader
- .metadata118 B
- README.md1.3 KB
- properties.yaml980 B
- shader.wgsl19.8 KB
README.md
fantasyLava
Procedural lava that really flows, with no textures: dark cooled crust plates drift on the current and tear apart and close again, while the molten rock beneath streams faster and curls along a flow-mapped swirl. The colour is a blackbody ramp on a temperature (black, deep red, orange, yellow, yellow-white), hottest in the narrow seams between plates, cooling to red with yellow veins in the wide tears; plate lips glow dull red. The crust is a real PBR surface (dark rough basalt with a height-derived normal) shaded by zero_pbr_shade; the molten parts are glossy liquid whose light goes in emissive (peaks about 9 in yellow-white, so it reads as light under bloom in the dark and in daylight). Every field is periodic over one UV repeat, the motion included, so it tiles seamlessly; it animates from input.time only.
style 0 realistic, 1 hand-painted (soft swirled bands, painted crust islands with a warm top and glowing rim), 2 toon (three flat bands, round inked crust blobs with a cel highlight and a hot yellow rim). Tune flow_dir/flow_speed (UV repeats per second), turbulence, plate_scale (plates per repeat), crust_amount, crust_tear, crust_color, roughness, crust_height (metres) and glow_intensity. Used by fantasyMaterials' lavaFlow, lavaPainted and lavaToon.