newspeoplefor developersdocumentationdownloads

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

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.
-01-Nov-06 kims Changed to have three float type for uv animation.


getuveuler

Command Input:
i(Layer)
Command Output:
fff(EulerAngles)
Command Description:
Get uv coordinate euler rotation for given uv set.
-01-Nov-06 kims Changed to have three float type for uv animation.


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.
-01-Nov-06 kims Changed to check it has the shader param.


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.
-01-Nov-06 kims Changed to check it has the shader param.


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.
-01-Nov-06 kims Changed to check it has the shader param.


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.
-01-Nov-06 kims Changed to check it has the shader param.


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.
-01-Nov-06 kims Changed to check it has the shader param.


getparams

Command Input:
v
Command Output:
l(l(name,type))
Command Description:
Get a list of pairs of params and their types.

Copyright © 1999-2005 by the contributing authors. Ideas, requests, problems: Send feedback.