r3frmat

r3frmat

Class

real/raytr/r3frmat.h

Library

r3raytr

Description:

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.

See Also

real/raytr/r3frmaba.h

Super Class

r3Frmatbase

R3CLID_FRMATBASE

JavaScript

r3Frmat

Class Identifier

R3CLID_FRMAT - 421

Methods

LINKIFELSEBLOCKS,

Attributes

LocalVarCount,

Registration

int R3RegisterFRMatClass(R3APP *app);

R3FRMATM_LINKIFELSEBLOCKS

Method

LINKIFELSEBLOCKS

Identifier

R3FRMATM_LINKIFELSEBLOCKS

JavaScript

obj.LINKIFELSEBLOCKS();

Description

LocalVarCount

Attribute

LocalVarCount

Identifier

R3FRMATA_LocalVarCount

JavaScript type

Integer

C type

R3INT

Description

material defines 'static' root level vars

Syntax


jsobj.SetLocalVarCount(value);


R3INT value = ...;
R3SetAttrs(r3obj, R3FRMATA_LocalVarCount, value, R3TAG_END);


r3appobj *