Materials
2 pages
-
material_setDefines or replaces the material named ref (glTF metallic-roughness, linear values): baseColor [r, g, b, a] in [0, 1], metallic and roughness in [0, 1], optional emissive [r, g, b] in [0, 10000] and opacity in [0, 1]. -
get_materialsEvery defined material, sorted by ref, as { materials: [{ ref, baseColor, metallic, roughness, emissive, opacity, and its texture bindings (normalTexture with scale, occlusionTexture with strength) }] }.