compileMaterialGraph
此内容尚不支持你的语言。
compileMaterialGraph(
graph):string
Defined in: materialGraph.ts:105
Compile a material graph into a .esshader source string (assembled by the engine’s
ShaderParser like any hand-written shader). Emits BOTH stage languages — the GLSL fragment
and its #pragma fragment wgsl twin — from one DAG walk, so a graph material runs on
either backend. Throws on a missing node/input, a cycle, an unknown node type, or an
output root that isn’t an output node.
Parameters
Section titled “Parameters”Returns
Section titled “Returns”string