# Class: shader

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

## Hierarchy

    o-+ resource
      o-+ shader

## Interfaces:

- hashid

## Methods:

### Method overview:

- defaultpath
- getparamid
- getrestype
- load
- param

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)
  returns: (shader shd)
  loads a shader
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