Log inGet started
World

Rune and Ember: The Fantasy and Magic Material Collection

Branchmain
Branchesmain
Commitd4577ba01c

README.md

fantasyMana

Procedural surface of a pool of liquid magic, with no textures: a glassy, rippled dielectric that reflects the room (screen-space trace plus environment, through zero_pbr_shade), over near-black sapphire depths. The light sits really below the surface: each layer is sampled where the refracted view ray reaches its own depth, so it parallaxes and wobbles under the travelling ripples.

One large whirlpool per UV repeat, centred in the repeat: the light field is wound around its eye by an angle that grows inward (noise becomes spiral arms), turns with a differential rotation (the eye fastest), flow-mapped in two crossfaded phases so it never winds up, plus two rigidly turning spiral arms; smaller eddies curl the light between whirlpools. The light is a brightness gradient so only thin parts go white under the tone curve: broad saturated-blue arm glow (~0.1-0.7), sparse thin filaments whose width is measured in UV (white-cyan cores at core_gain, saturated blue falloff, faint haze), a white-hot eye in a blue bloom, and drifting twinkling motes with white cores and blue halos. Emission is weighted by (1 - Fresnel), so the pool turns into a mirror at grazing angles. Every field is periodic over one repeat (torus distance to the eye, whirlpool faded to zero before the edge), so it tiles seamlessly; it animates from input.time only.

Tune deep_color (albedo and faint depth glow), glow_color (saturated broad light), core_color (white-hot cores), glow_intensity, core_gain, swirl_speed, swirl_twist, ripple_strength, ripple_speed, depth (metres of apparent depth), motes (density), reflection and roughness. Used by fantasyMaterials' manaPool; fits fountains, arcane wells, potion vats and magic springs.