{
  "format": "field",
  "version": 1,
  "meta": {
    "name": "Liesegang Sandstone Rings",
    "author": "Infinite",
    "description": "Concentric iron-oxide Liesegang precipitation bands etched into domain-warped Aztec sandstone strata with mineral grain.",
    "domain": "pixel"
  },
  "device": {
    "code": "# Liesegang Sandstone Rings (Field Pixel)\nparam float density = 14.0 [6.0, 28.0];\nparam float warp = 0.42 [0.05, 1.0];\nparam float drift = 0.25 [0.0, 1.0];\n\np = vec2((uv.x - 0.5) * aspect, uv.y - 0.5);\nwx = sin(p.y * 5.2 + t * drift * 0.6) * 0.14 + cos(p.x * 8.4 - p.y * 3.1) * 0.06;\nwy = cos(p.x * 4.8 - t * drift * 0.5) * 0.14 + sin(p.y * 7.6 + p.x * 2.9) * 0.06;\nq = p + vec2(wx, wy) * warp;\n\nr = length(q);\nrings = sin(r * density * 3.1415926 - t * drift * 1.4 + sin(q.x * 9.0) * 0.8);\nband = smoothstep(-0.35, 0.45, rings);\nstrata = 0.5 + 0.5 * sin(q.y * 28.0 + wx * 12.0);\ngrain = 0.04 * sin(uv.x * 160.0) * cos(uv.y * 140.0);\n\number = vec3(0.275, 0.145, 0.106);\nterracotta = vec3(0.725, 0.314, 0.192);\nochre = vec3(0.847, 0.545, 0.357);\nsand = vec3(0.910, 0.776, 0.612);\n\nrgb = mix(umber, terracotta, band);\nrgb = mix(rgb, ochre, strata * 0.48);\nrgb = mix(rgb, sand, pow(band, 3.0) * 0.55) + grain;\nvig = 1.0 - 0.34 * dot(uv - 0.5, uv - 0.5);\ncol = clamp(rgb * vig, 0.0, 1.0);\n",
    "params": {
      "density": 14.0,
      "warp": 0.42,
      "drift": 0.25
    }
  }
}