Constructors

GraphCompiler

Properties

Errors Error list, doesn't give you much information currently
Graph Current graph we're compiling
IsNotPreview
IsPreview Is this compile for just the preview or not, preview uses attributes for constant values
IsPs
IsVs
Nodes
OnAttribute
PixelIncludes
Stage
Subgraphs The loaded sub-graphs
VertexIncludes

Methods

Generate Generate shader code, will evaluate the graph if it hasn't already. Different code is generated for preview and not preview.
RegisterFunction
RegisterGlobal
RegisterInclude
Result Get result of an input
ResultFunction
ResultOrDefault Get result of an input with an optional default value if it failed to resolve
ResultParameter Get result of a value that can be set in material editor
ResultTexture Register a texture and return the name of it
ResultValue Get result of a value, in preview mode an attribute will be registered and returned Only supports float, Vector2, Vector3, Vector4, Color, bool

Static Properties

ValueTypes
people
Log in to reply
You can't reply if you're not logged in. That would be crazy.