PyMaterialXGenShader

Core shader generation support for MaterialX.

Classes

ApplicationVariableHandler

A function to allow for handling of application variables for a given node.

ColorManagementSystem

Abstract base class for color management systems.

ColorSpaceTransform

Structure that represents color space transform information.

DefaultColorManagementSystem

Class for a default color management system.

GenContext

A context class for shader generation.

GenOptions

Class holding options to configure shader generation.

GenUserData

Base class for custom user data needed during shader generation.

HwResourceBindingContext

Class representing a context for resource binding for hardware resources.

HwShaderGenerator

Base class for shader generators targeting HW rendering.

HwSpecularEnvironmentMethod

Method to use for specular environment lighting

Shader

Class containing all data needed during shader generation.

ShaderGenerator

Base class for shader generators.

ShaderInterfaceType

Type of shader interface to be generated

ShaderPort

An input or output port on a ShaderNode.

ShaderPortPredicate

A function predicate taking a ShaderPort and returning a bool.

ShaderStage

A shader stage, containing the state and resulting source code for the stage.

ShaderTranslator

A helper class for translating content between shading models.

TypeDesc

A type descriptor for MaterialX data types.

UnitSystem

Base unit system support.

UnitTransform

Structure that represents unit transform information.

VariableBlock

A block of variables in a shader stage.

Module Functions

connectsToWorldSpaceNode(arg0)

elementRequiresShading(arg0)

findRenderableElements(doc[, ...])

findRenderableMaterialNodes(arg0)

getNodeDefInput(arg0, arg1)

getUdimCoordinates(arg0)

getUdimScaleAndOffset(arg0, arg1, arg2)

hasElementAttributes(arg0, arg1)

isTransparentSurface(arg0, arg1)

mapValueToColor(arg0, arg1)

requiresImplementation(arg0)

tokenSubstitution(arg0, arg1)

PyMaterialXGenShader Module Function Documentation

connectsToWorldSpaceNode(arg0: Output) Node
elementRequiresShading(arg0: TypedElement) bool
findRenderableElements(doc: Document, includeReferencedGraphs: bool = False) list[TypedElement]
findRenderableMaterialNodes(arg0: Document) list[TypedElement]
getNodeDefInput(arg0: PyMaterialXCore.Input, arg1: str) PyMaterialXCore.Input
getUdimCoordinates(arg0: list[str]) list[Vector2]
getUdimScaleAndOffset(arg0: list[Vector2], arg1: Vector2, arg2: Vector2) None
hasElementAttributes(arg0: Output, arg1: list[str]) bool
isTransparentSurface(arg0: Element, arg1: str) bool
mapValueToColor(arg0: Value, arg1: Color4) None
requiresImplementation(arg0: NodeDef) bool
tokenSubstitution(arg0: dict[str, str], arg1: str) None

Module source: MaterialX / source / PyMaterialX / PyMaterialXGenShader /