{
 "id": "materialx",
 "title": "MaterialX",
 "aliases": [],
 "domain": "materials",
 "subdomain": "material interchange",
 "stage": "material",
 "realtime": "realtime",
 "platforms": [
  "webgl2",
  "webgpu",
  "desktop-gpu",
  "blender",
  "houdini",
  "unity",
  "unreal",
  "python",
  "cpu"
 ],
 "year_introduced": 2017,
 "inputs": [
  "material-params",
  "texture"
 ],
 "outputs": [
  "material-params"
 ],
 "style": "both",
 "dynamic": "both",
 "summary": "An open standard (ASWF) for describing materials, procedural textures and look assignments as node graphs in XML, with code generators for GLSL, MSL, OSL and MDL. The lingua franca between DCCs and renderers.",
 "how_it_works": "A MaterialX document is an XML file of typed nodes (images, noise, math, color transforms, shading models) wired into graphs, plus 'looks' that bind materials to geometry and variants. The core library defines standard nodes and the standard_surface and OpenPBR shading nodes. Implementations are reference libraries (C++/Python/JavaScript) that read, validate and transform documents, and shader generators that flatten a graph into GLSL, ESSL, MSL, OSL or MDL source, so one asset can be rendered by USD-based viewers, DCC tools and web viewers. The JavaScript build runs in WebAssembly, powering browser viewers. The standard library also ships a node for OpenPBR Surface.",
 "when_to_use": "Choose it for portable material graphs shared across tools, renderer-neutral look development and USD pipelines. Prefer plain glTF PBR for simple web delivery, and engine-native node graphs when you never leave one engine. Use it as the carrier format for `openpbr-surface`.",
 "cost": {
  "class": "cheap",
  "notes": "Format and code generation, not a runtime technique; generated shaders cost what their nodes cost."
 },
 "failure_modes": [
  "Generated shaders can be large and slow when graphs are deep, with little dead-node elimination",
  "Support for individual nodes differs between renderers, so the same graph renders differently",
  "Round-trip through DCC exporters loses non-standard nodes",
  "Only some node outputs have texture-baking support"
 ],
 "sources": [
  {
   "role": "primary",
   "key": "url:https://materialx.org/",
   "type": "web",
   "title": "MaterialX",
   "authors": [
    "Academy Software Foundation"
   ],
   "year": null,
   "venue": "materialx.org",
   "url": "https://materialx.org/",
   "ids": {},
   "license": null,
   "extra": {
    "http_status": 200,
    "live": true,
    "archive": {
     "url": "http://web.archive.org/web/20260930184730/https://materialx.org/",
     "timestamp": "20260930184730"
    },
    "page_title": "MaterialX - Home",
    "host": "materialx.org",
    "title_confirmed_by_page": true,
    "title_unconfirmed": false
   },
   "provenance": {
    "title": {
     "authority": "http",
     "endpoint": "GET https://materialx.org/ → 200",
     "checked_at": "2026-11-29T15:51:27.588Z"
    },
    "url": {
     "authority": "http",
     "endpoint": "GET https://materialx.org/ → 200",
     "checked_at": "2026-11-29T15:51:27.588Z"
    },
    "authors": {
     "authority": "research-draft",
     "endpoint": "title_hint/author_hint, checked against page title where available",
     "checked_at": "2026-11-29T15:51:27.588Z"
    },
    "venue": {
     "authority": "http",
     "endpoint": "GET https://materialx.org/ → 200",
     "checked_at": "2026-11-29T15:51:27.588Z"
    },
    "year": {
     "authority": "research-draft",
     "endpoint": "title_hint/author_hint, checked against page title where available",
     "checked_at": "2026-11-29T15:51:27.588Z"
    }
   },
   "status": "verified",
   "checked_at": "2026-11-29T15:51:27.588Z",
   "title_sim": 0.9,
   "__bib": "foundationmaterialx"
  },
  {
   "role": "implementation",
   "key": "gh:academysoftwarefoundation/materialx",
   "type": "code",
   "title": "AcademySoftwareFoundation/MaterialX",
   "description": "MaterialX is an open standard for the exchange of rich material and look-development content across applications and renderers.",
   "authors": [
    "AcademySoftwareFoundation"
   ],
   "year": 2017,
   "venue": "GitHub",
   "url": "https://github.com/AcademySoftwareFoundation/MaterialX",
   "ids": {
    "repo": "AcademySoftwareFoundation/MaterialX"
   },
   "license": "Apache-2.0",
   "extra": {
    "stars": 2317,
    "stars_checked": "2026-11-29",
    "archived": false,
    "fork": false,
    "pushed_at": "2026-11-28T18:58:17Z",
    "language": "C++",
    "homepage": "http://www.materialx.org/",
    "license_name": "Apache License 2.0"
   },
   "provenance": {
    "title": {
     "authority": "github",
     "endpoint": "https://api.github.com/repos/AcademySoftwareFoundation/MaterialX",
     "checked_at": "2026-11-29T15:51:27.588Z"
    },
    "authors": {
     "authority": "github",
     "endpoint": "https://api.github.com/repos/AcademySoftwareFoundation/MaterialX",
     "checked_at": "2026-11-29T15:51:27.588Z"
    },
    "year": {
     "authority": "github",
     "endpoint": "https://api.github.com/repos/AcademySoftwareFoundation/MaterialX",
     "checked_at": "2026-11-29T15:51:27.588Z"
    },
    "venue": {
     "authority": "github",
     "endpoint": "https://api.github.com/repos/AcademySoftwareFoundation/MaterialX",
     "checked_at": "2026-11-29T15:51:27.588Z"
    },
    "url": {
     "authority": "github",
     "endpoint": "https://api.github.com/repos/AcademySoftwareFoundation/MaterialX",
     "checked_at": "2026-11-29T15:51:27.588Z"
    },
    "license": {
     "authority": "github",
     "endpoint": "https://api.github.com/repos/AcademySoftwareFoundation/MaterialX",
     "checked_at": "2026-11-29T15:51:27.588Z"
    }
   },
   "status": "verified",
   "checked_at": "2026-11-29T15:51:27.588Z",
   "title_sim": null,
   "__bib": "academysoftwarefoundation2017academysoftwarefoundation"
  }
 ],
 "presets": [
  {
   "id": "materialx-live",
   "title": "MaterialX — live Standard Surface node graph (left) vs evaluated procedural shader ball (right)",
   "runtime": "glsl-fragment",
   "params": {
    "P_METALNESS": 0.55,
    "P_CLEARCOAT": 0.75,
    "P_VEIN_FREQ": 5.5,
    "P_SPLIT": 0.46
   },
   "basis": "original",
   "license_note": "MIT — written for this index.",
   "code": "const float P_METALNESS = 0.55; // P Metalness [0.0, 1.0, 0.05]\nconst float P_CLEARCOAT = 0.75; // P Clearcoat [0.0, 1.0, 0.05]\nconst float P_VEIN_FREQ = 5.50; // P Noise Frequency [2.0, 12.0, 0.5]\nconst float P_SPLIT = 0.46; // P Graph / Shader Split [0.0, 1.0, 0.02]\n\nfloat hash31(vec3 p) {\n  p = fract(p * vec3(127.1, 311.7, 74.7));\n  p += dot(p, p.yzx + 19.19);\n  return fract((p.x + p.y) * p.z);\n}\n\nfloat noise3(vec3 p) {\n  vec3 i = floor(p);\n  vec3 f = fract(p);\n  f = f * f * (3.0 - 2.0 * f);\n  float n000 = hash31(i + vec3(0.0, 0.0, 0.0));\n  float n100 = hash31(i + vec3(1.0, 0.0, 0.0));\n  float n010 = hash31(i + vec3(0.0, 1.0, 0.0));\n  float n110 = hash31(i + vec3(1.0, 1.0, 0.0));\n  float n001 = hash31(i + vec3(0.0, 0.0, 1.0));\n  float n101 = hash31(i + vec3(1.0, 0.0, 1.0));\n  float n011 = hash31(i + vec3(0.0, 1.0, 1.0));\n  float n111 = hash31(i + vec3(1.0, 1.0, 1.0));\n  return mix(\n    mix(mix(n000, n100, f.x), mix(n010, n110, f.x), f.y),\n    mix(mix(n001, n101, f.x), mix(n011, n111, f.x), f.y),\n    f.z\n  );\n}\n\nfloat fbm3(vec3 p) {\n  float v = 0.0;\n  float a = 0.5;\n  for (int i = 0; i < 4; i++) {\n    v += a * noise3(p);\n    p *= 2.05;\n    a *= 0.5;\n  }\n  return v;\n}\n\nfloat sdRoundBox(vec2 p, vec2 b, float r) {\n  vec2 q = abs(p) - b + r;\n  return length(max(q, 0.0)) + min(max(q.x, q.y), 0.0) - r;\n}\n\nfloat sdBezierWire(vec2 p, vec2 a, vec2 b, out float tOut) {\n  float minD = 1e5;\n  tOut = 0.0;\n  vec2 c1 = vec2(mix(a.x, b.x, 0.55), a.y);\n  vec2 c2 = vec2(mix(a.x, b.x, 0.45), b.y);\n  vec2 prev = a;\n  for (int i = 1; i <= 16; i++) {\n    float t = float(i) / 16.0;\n    float u = 1.0 - t;\n    vec2 cur = u * u * u * a + 3.0 * u * u * t * c1 + 3.0 * u * t * t * c2 + t * t * t * b;\n    vec2 pa = p - prev, ba = cur - prev;\n    float h = clamp(dot(pa, ba) / max(dot(ba, ba), 1e-6), 0.0, 1.0);\n    float d = length(pa - ba * h);\n    if (d < minD) { minD = d; tOut = (float(i - 1) + h) / 16.0; }\n    prev = cur;\n  }\n  return minD;\n}\n\nfloat D_GGX(float ndh, float a) {\n  float a2 = a * a;\n  float d = ndh * ndh * (a2 - 1.0) + 1.0;\n  return a2 / max(3.1415926 * d * d, 1e-5);\n}\n\nvec3 evalStudioEnv(vec3 d) {\n  vec3 bg = mix(vec3(0.08, 0.10, 0.14), vec3(0.26, 0.34, 0.48), smoothstep(-0.3, 0.8, d.y));\n  float softbox = smoothstep(0.32, 0.12, abs(d.x - 0.35)) * smoothstep(0.25, 0.65, d.y);\n  float rim = exp(-abs(d.y - 0.12) * 14.0) * smoothstep(-0.3, 0.5, -d.x);\n  return bg + vec3(2.5, 2.3, 2.0) * softbox + vec3(0.55, 0.92, 1.35) * rim;\n}\n\nvec3 aces(vec3 x) {\n  x = max(x, 0.0);\n  return (x * (2.51 * x + 0.03)) / (x * (2.43 * x + 0.59) + 0.14);\n}\n\nvoid mainImage(out vec4 fragColor, in vec2 fragCoord) {\n  vec2 uv = (fragCoord - 0.5 * iResolution.xy) / iResolution.y;\n  float sx = fragCoord.x / max(iResolution.x, 1.0);\n  float split = clamp(P_SPLIT, 0.0, 1.0);\n  bool showBall = sx >= split;\n\n  float metal = clamp(P_METALNESS, 0.0, 1.0);\n  float coat = clamp(P_CLEARCOAT, 0.0, 1.0);\n  float vFreq = clamp(P_VEIN_FREQ, 1.5, 14.0);\n\n  vec3 col = vec3(0.04, 0.05, 0.07);\n\n  if (!showBall) {\n    // Left: MaterialX DAG node graph schematic with live animated procedural swatch previews\n    vec2 g = uv + vec2(0.36, 0.0);\n    // Subtle schematic grid\n    vec2 gr = abs(fract(g * 14.0) - 0.5);\n    float gridLine = smoothstep(0.04, 0.01, min(0.5 - gr.x, 0.5 - gr.y));\n    col = vec3(0.045, 0.055, 0.075) + vec3(0.04, 0.06, 0.09) * gridLine;\n\n    // Node centers in graph space\n    vec2 nNoise = vec2(-0.36, 0.22);\n    vec2 nRamp = vec2(-0.12, 0.28);\n    vec2 nRough = vec2(-0.12, -0.02);\n    vec2 nCoat = vec2(-0.12, -0.28);\n    vec2 nSurf = vec2(0.16, 0.04);\n\n    // Draw Bezier connections with animated signal pulses\n    vec2 starts[5];\n    vec2 ends[5];\n    vec3 wCols[5];\n    starts[0] = nNoise + vec2(0.09, 0.01); ends[0] = nRamp - vec2(0.09, 0.0); wCols[0] = vec3(0.35, 0.85, 1.0);\n    starts[1] = nNoise + vec2(0.09, -0.02); ends[1] = nRough - vec2(0.09, 0.0); wCols[1] = vec3(0.75, 0.80, 0.90);\n    starts[2] = nRamp + vec2(0.09, 0.0); ends[2] = nSurf - vec2(0.11, -0.09); wCols[2] = vec3(0.95, 0.65, 0.25);\n    starts[3] = nRough + vec2(0.09, 0.0); ends[3] = nSurf - vec2(0.11, 0.0); wCols[3] = vec3(0.55, 0.92, 0.65);\n    starts[4] = nCoat + vec2(0.09, 0.0); ends[4] = nSurf - vec2(0.11, 0.09); wCols[4] = vec3(0.85, 0.55, 1.0);\n\n    for (int i = 0; i < 5; i++) {\n      float wt = 0.0;\n      float dw = sdBezierWire(g, starts[i], ends[i], wt);\n      float line = smoothstep(0.0085, 0.003, dw);\n      float pulse = exp(-pow(fract(wt - iTime * 0.45 - float(i) * 0.17) - 0.5, 2.0) * 60.0);\n      col = mix(col, wCols[i] * (0.65 + 1.2 * pulse), line);\n    }\n\n    // Draw 5 MaterialX nodes with live procedural thumbnails inside each box\n    vec2 nPos[5];\n    vec2 nSz[5];\n    vec3 hdr[5];\n    nPos[0] = nNoise; nSz[0] = vec2(0.09, 0.09); hdr[0] = vec3(0.22, 0.56, 0.88);\n    nPos[1] = nRamp;  nSz[1] = vec2(0.09, 0.085); hdr[1] = vec3(0.86, 0.48, 0.16);\n    nPos[2] = nRough; nSz[2] = vec2(0.09, 0.085); hdr[2] = vec3(0.22, 0.72, 0.46);\n    nPos[3] = nCoat;  nSz[3] = vec2(0.09, 0.08);  hdr[3] = vec3(0.68, 0.36, 0.88);\n    nPos[4] = nSurf;  nSz[4] = vec2(0.11, 0.16);  hdr[4] = vec3(0.92, 0.32, 0.24);\n\n    for (int i = 0; i < 5; i++) {\n      vec2 lp = g - nPos[i];\n      float d = sdRoundBox(lp, nSz[i], 0.015);\n      float fill = smoothstep(0.004, -0.004, d);\n      float border = smoothstep(0.006, 0.001, abs(d));\n      vec3 body = vec3(0.10, 0.12, 0.16);\n      // Header bar\n      if (lp.y > nSz[i].y - 0.032) body = hdr[i] * 0.85;\n      else {\n        vec2 suv = lp / max(nSz[i], vec2(0.01)) * 0.5 + 0.5;\n        float nv = fbm3(vec3(suv * vFreq * 0.65, iTime * 0.15));\n        float vein = smoothstep(0.32, 0.68, abs(sin(suv.x * vFreq + nv * 4.2)));\n        if (i == 0) body = vec3(nv);\n        else if (i == 1) body = mix(vec3(0.07, 0.16, 0.22), vec3(0.94, 0.68, 0.28), vein);\n        else if (i == 2) body = vec3(mix(0.15, 0.65, 1.0 - vein)) * vec3(0.85, 0.95, 0.90);\n        else if (i == 3) body = vec3(coat * 0.9, coat * 0.6, coat);\n        else {\n          // Standard Surface output preview sphere inside final node\n          float rr = length((lp + vec2(0.0, 0.015)) / 0.075);\n          if (rr < 1.0) {\n            vec3 sn = vec3((lp + vec2(0.0, 0.015)) / 0.075, sqrt(max(1.0 - rr * rr, 0.0)));\n            float nl = max(dot(sn, normalize(vec3(0.5, 0.7, 0.6))), 0.1);\n            vec3 baseC = mix(vec3(0.07, 0.16, 0.22), vec3(0.94, 0.68, 0.28), vein);\n            body = baseC * nl + vec3(0.9) * pow(max(dot(sn, normalize(vec3(0.35, 0.55, 0.8))), 0.0), 28.0) * (0.4 + 0.6 * coat);\n          }\n        }\n      }\n      col = mix(col, body, fill);\n      col = mix(col, hdr[i] * 1.15, border);\n    }\n  } else {\n    // Right: Evaluated MaterialX Standard Surface shader ball with rotating sculpted core\n    vec3 ro = vec3(0.18, 0.18, 2.25);\n    vec3 rd = normalize(vec3(uv - vec2(0.16, 0.0), -1.45));\n    col = evalStudioEnv(rd) * 0.36;\n\n    // Intersect shader ball sphere (R=0.58) and recessed studio plinth\n    vec3 sc = vec3(0.18, 0.02, 0.0);\n    vec3 oc = ro - sc;\n    float b = dot(oc, rd);\n    float c = dot(oc, oc) - 0.58 * 0.58;\n    float disc = b * b - c;\n    float tSph = (disc > 0.0 && (-b - sqrt(disc)) > 0.05) ? (-b - sqrt(disc)) : 1e5;\n    float tPl = (rd.y < -0.01) ? ((-0.58 - ro.y) / rd.y) : 1e5;\n    if (tPl < 0.05 || tPl > 12.0) tPl = 1e5;\n\n    float tHit = min(tSph, tPl);\n    if (tHit < 1e4) {\n      vec3 p = ro + rd * tHit;\n      vec3 v = -rd;\n      if (tSph < tPl) {\n        vec3 n = normalize(p - sc);\n        float a = iTime * 0.32;\n        mat3 ry = mat3(cos(a), 0.0, sin(a), 0.0, 1.0, 0.0, -sin(a), 0.0, cos(a));\n        vec3 objP = ry * (p - sc);\n\n        // Evaluate the exact MaterialX procedural graph: fbm3 -> marble/copper vein -> standard_surface inputs\n        float nVal = fbm3(objP * vFreq * 0.85);\n        float vein = smoothstep(0.28, 0.72, abs(sin(objP.x * vFreq + objP.y * 2.4 + nVal * 4.5)));\n        vec3 baseCol = mix(vec3(0.06, 0.16, 0.24), vec3(0.92, 0.64, 0.26), vein);\n        float rough = mix(0.42, 0.14, vein);\n        float met = mix(metal * 0.25, min(metal * 1.15, 1.0), vein);\n\n        // Micro-bump from graph derivative\n        vec3 eps = vec3(0.01, 0.0, 0.0);\n        float nx = fbm3((objP + eps.xyy) * vFreq * 0.85) - nVal;\n        float ny = fbm3((objP + eps.yxy) * vFreq * 0.85) - nVal;\n        vec3 bumpN = normalize(n - (transpose(ry) * vec3(nx, ny, 0.0)) * 2.2);\n\n        vec3 L = normalize(vec3(0.55, 0.76, 0.58));\n        vec3 H = normalize(L + v);\n        float ndl = max(dot(bumpN, L), 0.0);\n        float ndv = max(dot(bumpN, v), 0.005);\n        float ndh = max(dot(bumpN, H), 0.0);\n        float vdh = max(dot(v, H), 0.0);\n\n        vec3 f0 = mix(vec3(0.04), baseCol, met);\n        vec3 F = f0 + (1.0 - f0) * pow(1.0 - vdh, 5.0);\n        float D = D_GGX(ndh, max(rough * rough, 0.04));\n        vec3 spec = D * F / max(4.0 * ndv * max(ndl, 0.05), 0.08) * ndl * 1.4;\n        vec3 diff = (1.0 - F) * (1.0 - met) * baseCol * (ndl * 0.95 + 0.28);\n        vec3 envR = evalStudioEnv(reflect(-v, bumpN));\n        vec3 ibl = envR * (f0 + (1.0 - f0) * pow(1.0 - ndv, 5.0)) * mix(1.0, 0.28, rough);\n        col = diff + spec + ibl * 0.82;\n\n        // MaterialX clearcoat layer using geometric normal n\n        if (coat > 0.01) {\n          float ndhC = max(dot(n, H), 0.0);\n          float ndvC = max(dot(n, v), 0.005);\n          float Fc = 0.04 + 0.96 * pow(1.0 - ndvC, 5.0);\n          float Dc = D_GGX(ndhC, 0.05);\n          vec3 coatSpec = vec3(Dc * 0.04 / max(4.0 * ndvC, 0.1)) * max(dot(n, L), 0.0);\n          vec3 coatEnv = evalStudioEnv(reflect(-v, n)) * Fc;\n          col = col * (1.0 - coat * Fc * 0.55) + coat * (coatSpec * 0.55 + coatEnv * 0.85);\n        }\n      } else {\n        vec2 chk = floor((p.xz - vec2(0.18, 0.0)) * 3.5);\n        vec3 fl = mix(vec3(0.10, 0.12, 0.15), vec3(0.18, 0.20, 0.24), mod(chk.x + chk.y, 2.0));\n        float ao = smoothstep(0.25, 1.15, length(p.xz - sc.xz));\n        col = mix(fl * (0.35 + 0.65 * ao), evalStudioEnv(rd) * 0.36, 1.0 - exp(-tPl * 0.22));\n      }\n    }\n  }\n\n  float sep = smoothstep(0.0035, 0.0008, abs(sx - split));\n  col = mix(col, vec3(0.95, 0.97, 1.0), sep);\n  fragColor = vec4(pow(clamp(aces(col), 0.0, 1.0), vec3(1.0 / 2.2)), 1.0);\n}",
   "execution_fidelity": "faithful-pass",
   "proof": {
    "kind": "rendered",
    "label": "rendered 2026-11-30",
    "ok": true,
    "proof": {
     "ok": true,
     "technique": "materialx",
     "runtime": "glsl-fragment",
     "checked_at": "2026-11-30T21:07:15.000Z",
     "renderer": "Headless EGL Tesla T4/PCIe/SSE2, OpenGL 3.30 Core, 512×512, iTime=1.5",
     "stats": {
      "mean": 0.4324,
      "std": 0.1944,
      "min": 0.1015,
      "max": 1
     },
     "image": "/specimens/materialx-live.webp",
     "reason": null
    }
   }
  }
 ],
 "related": [
  "openpbr-surface",
  "disney-principled-brdf",
  "procedural-noise-texturing"
 ],
 "extends": [],
 "supersedes": [],
 "combines_with": [],
 "provenance": {
  "prose": "original text written for this index (research draft, editorially reviewed)",
  "sources_verified_at": "2026-11-29T15:51:27.588Z",
  "draft": "data/drafts/materials/materialx.json"
 },
 "solves": [
  "materials break when moving between tools",
  "need one portable shader graph across renderers",
  "usd pipeline needs renderer-neutral look development",
  "want to export material nodes to glsl, osl and mdl"
 ],
 "authority": "Foundation",
 "url": "https://texelatlas.vercel.app/t/materialx/",
 "execution_fidelity": "faithful-pass",
 "fidelity_label": "Faithful Pass",
 "benchmark_eligible": true,
 "gpu_weight": {
  "weight_x": 60.97,
  "tier": "extreme",
  "p50_ms": 2.006,
  "p95_ms": 2.0706,
  "baseline_p50_ms": 0.0329,
  "gpu": "Tesla T4/PCIe/SSE2",
  "resolution": "1920x1080",
  "method": "opengl-timer-query",
  "frames": 32,
  "preset_id": "materialx-live",
  "execution_fidelity": "faithful-pass",
  "fidelity_label": "Faithful Pass",
  "benchmark_eligible": true,
  "generated_at": "2026-11-30T21:07:47Z",
  "l4": {
   "weight_x": 58.17,
   "tier": "heavy",
   "p50_ms": 0.9249,
   "p95_ms": 0.9305,
   "speedup_x": 2.17,
   "gpu": "NVIDIA L4/PCIe/SSE2",
   "resolution": "1920x1080",
   "baseline_p50_ms": 0.0159
  },
  "a100": {
   "weight_x": 42.92,
   "tier": "heavy",
   "p50_ms": 1.2362,
   "p95_ms": 1.2411,
   "speedup_x": 1.62,
   "gpu": "NVIDIA A100-SXM4-40GB/PCIe/SSE2",
   "resolution": "1920x1080",
   "baseline_p50_ms": 0.0288
  }
 }
}