ShaderDef.AddRendererDef operator

Introduced

v9.0 (2011)

Description

Adds a MetaShaderRendererDef definition and returns it. Every ShaderDef must have at least one MetaShaderRendererDef defined in order to know how to render. This is equivalent to having a MetaShader section in a SPDL file.

Note: The newly created object is set to empty if the renderer definition is already present.

C# Syntax

MetaShaderRendererDef ShaderDef.AddRendererDef( String in_str );

Scripting Syntax

oReturn = ShaderDef.AddRendererDef( in_str );

Return Value

MetaShaderRendererDef

Parameters

Parameter Type Description
in_str String The name of the renderer. This is the equivalent of the string identifying each Renderer section under the MetaShader section in a SPDL file.

See Also

ShaderDef.RemoveRendererDef ShaderDef.GetRendererDefByName ShaderDef.RendererDefs