Repository navigation
Added
- Added scattering equations and shading model definitions to the PBR specification, defining the mathematical foundations of each BSDF, EDF, and VDF node and the functional composition of Standard Surface, UsdPreviewSurface, glTF PBR, and OpenPBR Surface.
- Added support for vertical layering of opaque BSDFs in hardware shading languages and MDL, treating the weight of an opaque BSDF as a statistical coverage of the surface, with a new Vertical-Layering Transmittance section in the PBR specification.
- Added support for the ASWF Color Interop Forum recommendation in color management, introducing color interop names for all existing color spaces, new color spaces for Linear Rec.2020, ACES2065-1, CIE XYZ-D65, and sRGB Encoded AP1, and the
datadesignation for non-color inputs. - Added the maxcomponent and mincomponent nodes to the standard library, simplifying the graph definitions of glTF PBR and OpenPBR Surface.
- Added support for MDL 1.11 in shader generation, with retroreflectivity support in the MDL implementations of specular BSDF nodes.
- Added support for Zeltner sheen in the OSL implementation of
sheen_bsdfwhen OSL 1.14 is present. - Added temporary directory helpers to FilePath, along with a
createDirectoriesoption forwriteToXmlFile. - Added an Element::belongsToContentDocument helper for distinguishing content elements from those imported from data libraries, with bindings for Python and JavaScript.
- Added glTF validation to CgltfLoader, rejecting invalid assets before mesh construction and resolving a memory leak on load failure.
- Added an mxspec.py script for comparing, normalizing, and expanding node definitions in specification documents, replacing the earlier nodedef comparison script.
- Added visualization of invalid connections, token editing, and a preview pin to the MaterialX Graph Editor.
- Added GPU timing instrumentation to Perfetto tracing, recording the render time of each material on a dedicated track alongside code generation and compilation.
- Added a MinGW build and Windows ARM64 Python wheels to GitHub CI.
- Added a regex filter to the
tests_to_html.pyscript. - Added an initial Code of Conduct for the MaterialX project, expanded build instructions in the developer guide, and documentation for geometry resources.
Changed
- Updated the OpenPBR Surface definition to v1.1.2, integrating upstream UI name changes for the transmission and subsurface scatter anisotropy inputs.
- Unified texture coordinate conventions across render targets, with geometry loaders now returning coordinates in the lower-left origin of the MaterialX specification and each render target compensating for its own image origin, replacing the configurable vertical flips previously scattered across loaders, viewers, and tests.
- Improved Fresnel weighting in GGX energy compensation for hardware shading languages, tinting the recovered energy by the average Fresnel reflectance over the hemisphere.
- Aligned the alpha and channel promotion of
imagenodes with the specification across GLSL, MSL, and OSL, resolving a missing fourth channel to one and other missing channels to zero. - Aligned the tangent frame of the OSL normalmap node with GLSL and MSL, deriving bitangents as the cross product of the normal and tangent.
- Connected thin_walled to the surface node in the Standard Surface definition.
- Changed unrecognized color spaces in shader generation to raise an exception rather than warn to stderr, with more descriptive names for OCIO color transform functions.
- Enabled Objective-C ARC in MaterialXRenderMsl, removing manual reference counting and resolving leaks of Metal objects.
- Improved the text and pin display in the MaterialX Graph Editor, with consistent font scaling and new command-line options for pin placement and shape.
- Improved the documentation of vector2 roughness inputs in the PBR specification and data library, clarifying that they supply anisotropic roughness directly with no internal remapping.
- Improved the definitions of the flake nodes, adding UI ranges for roughness and coverage and correcting their documentation.
- Eliminated unused code in generated MDL shaders, resolving compiler warnings.
- Moved shared variance shadow code into platform libraries for GLSL, MSL, and Slang, enabling its transpilation to WGSL.
- Optimized the lookup of reserved identifiers in shader generation.
- Optimized inheritance traversal in document validation, skipping the traversal for elements without an inherit string and computing qualified graph names once during implementation lookup.
- Migrated JavaScript unit tests to Playwright, harmonizing on a single test framework for both unit and browser tests.
- Updated runner images in GitHub CI, moving the oldest builds to MacOS 15 and Ubuntu 24.04 and raising the minimum Node version for JavaScript builds to 20.9.
- Moved the nightly build into a dedicated GitHub CI workflow that runs only in the ASWF repository.
Fixed
- Fixed a ShaderGraph crash when multiple inputs of a node request color transforms for the same output, as in
triplanarprojection. - Fixed the handling of duplicate node identifiers in ShaderGraph and typedefs that shadow built-in types in shader generation, raising an exception in each case.
- Fixed the version upgrade of 1.38 documents for interface-bound inputs with stale values, normalmap frame inputs with literal values, and switch and swizzle nodes with unparseable or empty values.
- Fixed subsurface color scaling in the thin-walled mode of OpenPBR Surface, which previously squared the color contribution.
- Fixed the range node to clamp correctly when its output bounds are inverted.
- Fixed edge color clamping in the
artistic_iornode across GLSL, OSL, and MDL. - Fixed input variable names in inline source code implementations, honoring the sanitized shader variable assigned to each input.
- Fixed a tangent-frame seam in prefiltered environment map generation, and the object-space view direction in hardware shading, which previously used the inverse transpose rather than the inverse of the world matrix.
- Fixed incorrect math in the GLSL implementation of
chiang_hair_bsdf. - Fixed an occasional NaN in thin-film iridescence for hardware shading languages, which was visible as black pixels in some renders.
- Fixed color-dependent energy compensation in the MDL implementation of
oren_nayar_diffuse_bsdf, removing an unwanted white contribution on non-white materials at high diffuse roughness. - Fixed MDL shader generation for inline sourcecode implementations, compound graphs with mixed material and non-material outputs, and invalid shader names, along with missing null input checks in convolution nodes.
- Fixed Slang shader generation and rendering, addressing matrix multiplication, macro replacement, and texture creation, and binding direct light uniforms in Slang rendering.
- Fixed translation handling in the OSL implementation of
transformmatrixforvector3inputs andmatrix44transforms. - Fixed keyboard input in the graph area, the window focus check for the add-node popup, double UI scaling on MacOS Retina displays, and the enforcement of uniform input rules in the MaterialX Graph Editor.
- Fixed the building of shared libraries with MinGW64 on Windows, and an unnecessary X11 dependency in Emscripten builds.
- Fixed syntax and logic issues in the
tests_to_html.pyscript and the XML validation check in themxformat.pyscript.
Removed
- Removed the deprecated Syntax::typeSupported method, resolving warnings on newer compilers.
Thanks
Thanks to @2lian, @ashwinbhat, @aviralgarg05, @bhouston, @brechtvl, @catherineazelbee, @chinmaychahar, @chrissanrow, @cod1r, @crydalch, @doug-walker, @jabrailkhalil, @johnnynunez, @jreichel-nvidia, @jstone-lucasfilm, @kshivam4781, @kwokcb, @La1itchauhan, @ld-kerley, @LouisDeconinck, @LouRohanNV, @MatthieuBEAUD, @mialana, @msuzuki-nvidia, @MustafaJafar, @pixelsandpointers, @popsiclelmlm, @ppenenko, @redartengineer, @SavaLione, @seang-ilm, @shubhamrai9122-creator, @tdavidovicNV, @warrenm, and @wingfiring for their contributions to this release!