Class: shader

shader to setup blend effects between textures.
See the shdscript manual for more infos.

Hierarchy

o-+ resource
  o-+ shader

Methods:

Method overview:


annotation (shader, string name)
returns: ([string])
searches and returns annotation string
defaultpath ([string])
returns: ([string])
returns or sets the default resource path. Luxinia will search in those when resources are not found.
getparamid (shader,string name,[int pass])
returns: ([shaderparamid])
returns id. In case param is used in multiple passes define which. (default first used).
getrestype ()
returns: (int restype)
returns the resource type as int value, useful for resdata or reschunk functions
load (string filename, [compilerargs])
returns: (shader shd)
loads a shader. Optionally can pass compilerstrings, eg. "-DSOMETHING;".
param (shader,shaderparamid,[arrayoffset],[float x,y,z,w])
returns: (float x,y,z,w)
returns or sets a shaderparam value, does nothing when param wasnt found. Arrayoffset only used for array parameters

Inherited Methods:

From resource

condition, getresname, getresshortname, resuserstring