r3frmat
real/raytr/r3frmat.h
r3raytr
renderer's VSL material class. The class acts as a level, collecting VSL shaders together to form a combination called 'material'. FRMAT is quite a simple class and the actual 'work' is done by the property (shader) objects linked to it. When this base class receives R3FRMSRCM_EVALUATE message, it sets up a suitable environment for evaluating a shader tree implemented using R3CLID_RMATPROP based shaders and sends R3RMPM_EVALUATE to its children. This is inappropriate for all custom material classes that do not use R3CLID_RMATPROP type shaders. Such classes should handle the R3FRMSRCM_EVALUATE method without inheriting it to this base class.
r3Frmatbase
R3CLID_FRMATBASE
r3Frmat
R3CLID_FRMAT - 421
int R3RegisterFRMatClass(R3APP *app);
R3FRMATM_LINKIFELSEBLOCKS
LINKIFELSEBLOCKS
R3FRMATM_LINKIFELSEBLOCKS
obj.LINKIFELSEBLOCKS();
LocalVarCount
LocalVarCount
R3FRMATA_LocalVarCount
Integer
R3INT
material defines 'static' root level vars
jsobj.SetLocalVarCount(value);
R3INT value = ...;
R3SetAttrs(r3obj, R3FRMATA_LocalVarCount, value, R3TAG_END);
r3appobj *