The following is the layout of the definitions and implementations provided as part of the core libraries.
genglsl
: Support for GLSL code generationgenosl
: Support for OSL code generationosl
: Reference OSL implementations
- stdlib
- stdlib_defs.mtlx : Single node nodedef definitions file.
- stdlib_ng.mtlx : Node graph definitions file.
- genglsl: GLSL language support.
- lib : Shader utility files.
- stdlib_genglsl_impl.mtlx : Mapping from definitions to implementations
- stdlib_genglsl_cm_impl.mtlx : Minimal set of "default" color management implementations.
- GLSL implementation files.
- genosl: OSL language support.
- lib: Shader utility files.
- stdlib_genosl_impl.mtlx : Mapping from definitions to implementations
- stdlib_genosl_cm_impl.mtlx : Minimal set of "default" color management implementations.
- OSL implementation files.
- osl: OSL reference implementation
- OSL implementation files.
- pbrlib
- pbrlib_defs.mtlx : Single node definitions file.
- pbrlib_ng.mtlx : Node graph definitions file.
- genglsl : GLSL language support
- lib : Shader utility files.
- pbrlib_genglsl_impl.mtlx : Mapping from definitions to implementations
- GLSL implementation files.
- genosl : OSL language support
- lib : Utilities
- pbrlib_genosl_impl.mtlx : Mapping from definitions to implementations
- OSL implementation files.
- GLSL language support is for version 4.0 or higher.
- OSL language support is for version 1.9.10 or higher.
- "default" color management support includes OSL and GLSL implementations for the following non-LUT transforms:
- lin_rec709, gamma18, gamma22, gamma24, acescg, srgb_texture
- Basic GLSL
lightshader
node definitions and implementations are provided for the following light types:- point, directional, spot
- Code generation is not currently supported for:
ambientocclusion
node for:genosl
andgenglsl
.arrayappend
node for:genosl
andgenglsl
.curveadjust
node for:genosl
andgenglsl
.displacementshader
andvolumeshader
nodes and associated operations (add
,multiply
,mix
) for:genosl
andgenglsl
.