MetaShaderRendererDef.CodeText operator


v9.0 (2011)


Returns or sets the text of the shader code to execute as a String. This is the same as the embedded shader code specified between the "BeginText" and "EndText" block of the MetaShader > Renderer section in a SPDL file.

If the text hasn't been set then an empty string is returned.

C# Syntax

// get accessor
String rtn = MetaShaderRendererDef.CodeText;
// set accessor
MetaShaderRendererDef.CodeText = String;

See Also

MetaShaderRendererDef.CodePath Shader.CodeText