0
0
lib-macos_arm64/materialx/libraries
2024-02-22 11:06:09 +01:00
..
bxdf Initial commit of files from blender-3.6-release 2024-02-22 11:06:09 +01:00
lights Initial commit of files from blender-3.6-release 2024-02-22 11:06:09 +01:00
mdl/materialx Initial commit of files from blender-3.6-release 2024-02-22 11:06:09 +01:00
pbrlib Initial commit of files from blender-3.6-release 2024-02-22 11:06:09 +01:00
stdlib Initial commit of files from blender-3.6-release 2024-02-22 11:06:09 +01:00
targets Initial commit of files from blender-3.6-release 2024-02-22 11:06:09 +01:00
README.md Initial commit of files from blender-3.6-release 2024-02-22 11:06:09 +01:00

MaterialX Data Libraries

This folder contains the standard data libraries for MaterialX, providing declarations and graph definitions for the MaterialX nodes, and source code for all supported shader generators.

Standard Pattern Library

Physically Based Shading Library

BxDF Graph Library

Target Definitions

  • Each target implementation requires a target definition for declaration / implementation correspondence to work.
  • The targets folder contains definition files for the following core targets:
    • GLSL : genglsl
    • OSL : genosl
    • MDL : genmdl
  • Any additional target files should be added under this folder and loaded in as required.

Target Support

  • GLSL target support is for version 4.0 or higher.
  • OSL target support is for version 1.9.10 or higher.
  • MDL target support is for version 1.6.
  • "Default" color management support includes OSL, GLSL, and MDL implementations for the following color spaces:
    • lin_rec709, g18_rec709, g22_rec709, rec709_display, acescg (lin_ap1), g22_ap1, srgb_texture
  • Basic GLSL lightshader node definitions and implementations are provided for the following light types:
    • point, directional, spot
  • Code generation does not currently support:
    • ambientocclusion node.
    • arrayappend node.
    • curveadjust node.
    • displacementshader and volumeshader nodes and associated operations (add, multiply, mix) for GLSL targets.