nAbstractShaderNode Script Interface
nabstractshadernode:
Super Class:
Subclasses:
C++ Class:
Info
Parent class for shader related scene node classes. Don't use this class directly, instead use its subclasses.-01-Nov-06 kims Changed n_setuveuler and n_getuveuler to have three float type for uv animation.
Commands:
- setuvpos
- getuvpos
- setuveuler
- getuveuler
- setuvscale
- getuvscale
- settexture
- gettexture
- setint
- getint
- setbool
- getbool
- setfloat
- getfloat
- setvector
- getvector
- getparams
setuvpos
- Command Input:
i(Layer), fff(Pos)
- Command Output:
v
- Command Description:
- Set uv coordinate translation for given uv set.
getuvpos
- Command Input:
i(Layer)
- Command Output:
fff(Pos)
- Command Description:
- Get uv coordinate translation for given uv set.
setuveuler
- Command Input:
i(Layer), fff(EulerAngles)
- Command Output:
v
- Command Description:
- Set uv coordinate euler rotation for given uv set.
getuveuler
- Command Input:
i(Layer)
- Command Output:
fff(EulerAngles)
- Command Description:
- Get uv coordinate euler rotation for given uv set.
setuvscale
- Command Input:
i(Layer), fff(Scale)
- Command Output:
v
- Command Description:
- Set uv coordinate scale for given uv set.
getuvscale
- Command Input:
i(Layer)
- Command Output:
fff(Scale)
- Command Description:
- Get uv coordinate scale for given uv set.
settexture
- Command Input:
s(VarName), s(TextureResource)
- Command Output:
v
- Command Description:
- Set a texture resource shader variable.
gettexture
- Command Input:
s(VarName)
- Command Output:
s(TextureResource)
- Command Description:
- Get a texture resource shader variable.
setint
- Command Input:
s(VarName), i(IntVal)
- Command Output:
v
- Command Description:
- Set a integer shader variable.
getint
- Command Input:
s(VarName)
- Command Output:
i(IntVal)
- Command Description:
- Get a integer shader variable.
setbool
- Command Input:
s(VarName), b(BoolVal)
- Command Output:
v
- Command Description:
- Set a boolean shader variable.
getbool
- Command Input:
s(VarName)
- Command Output:
b(BoolVal)
- Command Description:
- Get a boolean shader variable.
setfloat
- Command Input:
s(VarName), f(FloatVal)
- Command Output:
v
- Command Description:
- Set a float shader variable.
getfloat
- Command Input:
s(VarName)
- Command Output:
f(FloatVal)
- Command Description:
- Get a float shader variable.
setvector
- Command Input:
s(VarName), f(X), f(Y), f(Z), f(W)
- Command Output:
v
- Command Description:
- Set a 4d vector shader variable.
getvector
- Command Input:
s(VarName)
- Command Output:
f(X), f(Y), f(Z), f(W)
- Command Description:
- Get a 4d vector shader variable.
getparams
- Command Input:
v
- Command Output:
l(l(name,type))
- Command Description:
- Get a list of pairs of params and their types.