subshaderΒΆ

class subshader

A subshader instanciation with its parameters

Members

Constructors:

subshader shader create ( string|nil name , {any} parameters ) Create a subshader with a name and parameters

Methods:

string name getname ( ) Get the shader name ("Texture", for instance)
any value getparameter ( string name ) Get a shader parameter value by its name
{} parameters getparameters ( ) Get the shader parameters
subshader merged merge ( subshader tomerge ) Merge a subshader with this, the merging shader overrides this.

Documentation

string name getname ( )

Get the shader name ("Texture", for instance)

Return:

  • name the subshader name


any value getparameter ( string name )

Get a shader parameter value by its name

Arguments:

  • name the subshader parameter name

Return:

  • value the subshader parameter


{} parameters getparameters ( )

Get the shader parameters

Return:

  • parameters the subshader parameters


subshader merged merge ( subshader tomerge )

Merge a subshader with this, the merging shader overrides this.

Arguments:

  • tomerge the shader to merge in

Return:

  • merged the result merge