r3mpcopy

r3mpcopy

Class

real/code/r3mpcopy.h

Library

r3code

Description:

Copy material shader. This reads a material property defined by the input channel and writes it to the destination property. Bindings allows channel mixing. for example, Red can be directed to Blue, X can be bound to Z etc.

See Also

real/code/r3matprp.h

Super Class

r3Matprop

R3CLID_MATPROP

JavaScript

r3Mpcopy

Class Identifier

R3CLID_MPCOPY - 496

Methods

Attributes

Remap1, Remap2, Remap3,

Registration

int R3RegisterMPCopyClass(R3APP *app);

Remap1

Attribute

Remap1

Identifier

R3MPCOPYA_Remap1

JavaScript type

Integer

C type

R3INT

Description

channel binding information

Syntax


jsobj.SetRemap1(value);
value = jsobj.GetRemap1();


R3INT value = ...;
R3SetAttrs(r3obj, R3MPCOPYA_Remap1, value, R3TAG_END);
R3INT value;
R3GetAttrs(r3obj, R3MPCOPYA_Remap1, &value, R3TAG_END);

Remap2

Attribute

Remap2

Identifier

R3MPCOPYA_Remap2

JavaScript type

Integer

C type

R3INT

Description

channel binding information

Syntax


jsobj.SetRemap2(value);
value = jsobj.GetRemap2();


R3INT value = ...;
R3SetAttrs(r3obj, R3MPCOPYA_Remap2, value, R3TAG_END);
R3INT value;
R3GetAttrs(r3obj, R3MPCOPYA_Remap2, &value, R3TAG_END);

Remap3

Attribute

Remap3

Identifier

R3MPCOPYA_Remap3

JavaScript type

Integer

C type

R3INT

Description

channel binding information

Syntax


jsobj.SetRemap3(value);
value = jsobj.GetRemap3();


R3INT value = ...;
R3SetAttrs(r3obj, R3MPCOPYA_Remap3, value, R3TAG_END);
R3INT value;
R3GetAttrs(r3obj, R3MPCOPYA_Remap3, &value, R3TAG_END);