Torque3D Documentation / _generateds / CustomShaderFeatureData

CustomShaderFeatureData

consoledoc.h

A Shader Feature with custom definitions.

More...

Public Functions

void
addConnector(String name, String type, String elementName)
void
addSampler(String name, uint arraySize)
void
addTexture(String name, String type, String samplerState, uint arraySize)
void
addUniform(String name, String type, String defaultValue, uint arraySize)
void
addVariable(String name, String type, String defaultValue)
void
addVertTexCoord(String name)
bool
hasFeature(String name)
void
writeLine(string format, string args...)

Dynamically call a method on an object.

Detailed Description

A Shader Feature with custom definitions.

This class allows for the creation and implementation of a ShaderGen ShaderFeature Implemented either engine side or script, and facilitates passing along of per-instance ShaderData.

Public Functions

addConnector(String name, String type, String elementName)

addSampler(String name, uint arraySize)

addTexture(String name, String type, String samplerState, uint arraySize)

addUniform(String name, String type, String defaultValue, uint arraySize)

addVariable(String name, String type, String defaultValue)

addVertTexCoord(String name)

hasFeature(String name)

writeLine(string format, string args...)

Dynamically call a method on an object.

Parameters:

method

Name of method to call.

args

Zero or more arguments for the method.

return:

The result of the method call.