PluginRegistrar.RegisterShader operator

Introduced

v9.0 (2011)

Description

Registers a custom shader definition (ShaderDef) in Softimage.

Note: For an example of a shader definition plug-in, see the ModelMap Shader Definition example.

C# Syntax

PluginItem PluginRegistrar.RegisterShader( String in_ShaderClassName, UInt32 in_MajorVersion, UInt32 in_MinorVersion );

Scripting Syntax

oReturn = PluginRegistrar.RegisterShader( in_ShaderClassName, in_MajorVersion, in_MinorVersion );

Return Value

PluginItem

Parameters

Parameter Type Description
in_ShaderClassName String Name of the new shader type. This value is used to build the ShaderDef.ProgID value by taking the name of the parser, the class name of the shader definition, and the major and minor version numbers to construct a string such as "Softimage.material-phong.1.0" (where 'Softimage' is the parser name, 'material-phong' is the class name, etc.).
in_MajorVersion Long Major version number. See the description for the in_ShaderClassName parameter.
in_MinorVersion Long Minor version number. See the description for the in_ShaderClassName parameter.

See Also

ShaderDef Definition Callbacks for Shaders Creating Shader Definition Plug-ins