{
  "format": "field",
  "version": 1,
  "meta": {
    "name": "Opus Sectile Travertine",
    "author": "Infinite",
    "description": "Roman inlaid travertine, porphyry, and slate geometric marble tessellation with mineral veining, bevel seams, and warm specular sheen.",
    "domain": "pixel"
  },
  "device": {
    "code": "# Opus Sectile Travertine (Field Pixel)\nparam float tiles = 5.0 [3.0, 9.0];\nparam float veining = 0.6 [0.0, 1.0];\nparam float sheen = 0.45 [0.0, 1.0];\n\np = vec2((uv.x - 0.5) * aspect, uv.y - 0.5) * tiles;\ncell = floor(p);\nf = fract(p) - 0.5;\n\nd1 = abs(f.x) + abs(f.y);\nd2 = max(abs(f.x), abs(f.y));\ndiamond = smoothstep(0.46, 0.49, d1);\nborder = smoothstep(0.47, 0.495, d2);\nseam = max(smoothstep(0.022, 0.012, abs(d1 - 0.475)), border);\n\nvein = 0.5 + 0.5 * sin(p.x * 5.4 + cos(p.y * 4.2 + t * 0.35) * 2.2);\nporphyry = vec3(0.420, 0.176, 0.169);\ntravertine = vec3(0.937, 0.906, 0.839);\nochre = vec3(0.714, 0.608, 0.455);\nslate = vec3(0.122, 0.125, 0.141);\n\nstoneInner = mix(porphyry, ochre, vein * 0.45 * veining);\nstoneOuter = mix(travertine, ochre, vein * 0.35 * veining);\nrgb = mix(stoneInner, stoneOuter, diamond);\nrgb = mix(rgb, slate, seam * 0.85);\n\nglint = pow(0.5 + 0.5 * sin((p.x + p.y) * 2.0 - t * 1.1), 4.0) * sheen * 0.22;\nrgb = rgb + vec3(glint);\nvig = 1.0 - 0.28 * dot(uv - 0.5, uv - 0.5);\ncol = clamp(rgb * vig, 0.0, 1.0);\n",
    "params": {
      "tiles": 5.0,
      "veining": 0.6,
      "sheen": 0.45
    }
  }
}