subshader

class guerilla.subshader

Bases: object

A subshader instanciation with its parameters

getname()

Get the shader name (“Texture”, for instance)

Returns:the subshader name
Return type:str
getparameter(name)

Get a shader parameter value by its name

Parameters:name (str) – the subshader parameter name
Returns:the subshader parameter
Return type:any
getparameters()

Get the shader parameters

Returns:the subshader parameters
Return type:{}
merge(tomerge)

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

Parameters:tomerge (subshader) – the shader to merge in
Returns:the result merge
Return type:subshader