ShaderDef.AddRendererDef operator


v9.0 (2011)


ICE Shaders


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.

Scripting Syntax

oReturn = ShaderDef.AddRendererDef( in_str );

Return Value



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