Constructor
new NodeFunction( type : string, inputs : Array.<NodeFunctionInput>, name : string, precision : string )
Constructs a new node function.
| type |
The node type. This type is the return type of the node function. |
| inputs |
The function's inputs. |
| name |
The function's name. Default is |
| precision |
The precision qualifier. Default is |
Properties
.inputs : Array.<NodeFunctionInput>
The function's inputs.
.name : string
The name of the uniform.
Default is ''.
.precision : string
The precision qualifier.
Default is ''.
.type : string
The node type. This type is the return type of the node function.
Methods
.getCode( name : string ) : string (abstract)
This method returns the native code of the node function.
| name |
The function's name. |
- Returns: A shader code.