Skip to content

Latest commit

 

History

History
70 lines (63 loc) · 4.24 KB

README.md

File metadata and controls

70 lines (63 loc) · 4.24 KB

MaterialX Data Libraries

The following is the layout of the definitions and implementations provided as part of the core libraries.

These libraries can be used to build shading networks which can be accepted by code generators to produce shader code.

The following core "targets": GLSL, MDL and OSL.

Standard Library

Physically-Based Shading Library

Target Definitions

  • Each target implementation requires a target definition for definition / implementation correspondence to work.
  • targets is the folder holding documents which declare these definitions.
  • There are definition files for the following core targets:
    • OSL : genosl
    • Desktop GLSL : genglsl
    • 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 non-LUT transforms:
    • lin_rec709, gamma18, gamma22, gamma24, acescg, 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.