Meta_SurfaceShaderInstance

Meta_SurfaceShaderInstances are associated with Materials, when attached as a child of a material they will effect the vertex and/or fragment shaders of any visuals rendered with said material.

Whether the vertex/fragment shaders will be affected depends on the SourceCode in the Definition. The shader can access various vertex / surface properties of the visual being rendered to use for various things.

The parameters of the material instance's arguments are selectively specified through the creation of child Meta_MaterialArgument nodes. These Meta_MaterialArguments can be set to take their value from the Definition's default value, a specific value from StdMaterial, or a custom value.

Some examples of surface shaders: Procedural texturing, procedural vertex animation, complex multi-layer material rendering.

Public Types


enum @3
CurrentVersion

enum IDX
Idx_Version

version number of this metanode, for potential future upgrade hooks

Idx_Enabled

if false any object using this material instance will not be drawn

Idx_Definition

link to a Meta_SurfaceShaderDefinition to use

Public Member Functions


No Results.

Getting StartedArchitectureBest PracticesHow ToAdvanced TopicsChangelogvrtree_cppCoreForeign Function InterfaceMetanodesMigrationsObserversPropertiesTreeUtilitiesAPI DefinitionsVR ExchangePluginsLua API