A SurfaceShaderDefinition represents a shader object, expected to be used by a Meta_SurfaceShaderInstance.

The inputs to the shader will be set by this nodes Meta_MaterialParameter children.

Expected Implementation Details:-

When the SourceCode property changes a search for "" defined within it is initiated, which in turn will extract the expected inputs for the shader. Meta_MaterialParameter nodes corresponding to these parameters will be created as children of the Meta_SurfaceShaderDefinition with their defined default values, allowing the user to easily configure the shader from the property panel or a script. If these #pragma's are missing in the source the user will have to manually create the child Meta_MaterialParameter nodes and set their values.

Public Types

enum @2

enum IDX

version number of this metanode, for potential future upgrade hooks


path to a ".surf" shader file on disk


source code, populated by the GUI or loaded from a file using the Filename property

Public Member Functions

No Results.

Getting StartedArchitectureBest PracticesHow ToAdvanced TopicsChangelogvrtree_cppCoreForeign Function InterfaceMetanodesMigrationsObserversPropertiesTreeUtilitiesAPI DefinitionsVR ExchangePluginsLua API