r3mpray

r3mpray

Class

real/code/r3mpray.h

Library

r3code

Description:

Ray tracer VSL object

See Also

real/code/r3mpleve.h

Super Class

r3Mplevel

R3CLID_MPLEVEL

JavaScript

r3Mpraytracer

Class Identifier

R3CLID_MPRAYTRACER - 1549

Attributes

Randomness, RayCount, NormalSide, WeightByAngle, TraceMode,

Registration

int R3RegisterMatPropRayTracerClass(R3APP *app);

Randomness

Attribute

Randomness

Identifier

R3MPRAYA_Randomness

JavaScript type

Number

C type

R3FLOAT

Description

random amplitude

Syntax


jsobj.SetRandomness(value);
value = jsobj.GetRandomness();


R3FLOAT value = ...;
R3SetAttrs(r3obj, R3MPRAYA_Randomness, value, R3TAG_END);
R3FLOAT value;
R3GetAttrs(r3obj, R3MPRAYA_Randomness, &value, R3TAG_END);

RayCount

Attribute

RayCount

Identifier

R3MPRAYA_RayCount

JavaScript type

Integer

C type

R3INT

Description

amount of sampled rays

Syntax


jsobj.SetRayCount(value);
value = jsobj.GetRayCount();


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

NormalSide

Attribute

NormalSide

Identifier

R3MPRAYA_NormalSide

JavaScript type

Boolean

C type

R3BOOL

Description

if true randomized rays are forced to same side of normal as the ray

Syntax


jsobj.SetNormalSide(value);
value = jsobj.GetNormalSide();


R3BOOL value = ...;
R3SetAttrs(r3obj, R3MPRAYA_NormalSide, value, R3TAG_END);
R3BOOL value;
R3GetAttrs(r3obj, R3MPRAYA_NormalSide, &value, R3TAG_END);

WeightByAngle

Attribute

WeightByAngle

Identifier

R3MPRAYA_WeightByAngle

JavaScript type

Boolean

C type

R3BOOL

Description

if true traced ray color is weighted by dot product ray*normal

Syntax


jsobj.SetWeightByAngle(value);
value = jsobj.GetWeightByAngle();


R3BOOL value = ...;
R3SetAttrs(r3obj, R3MPRAYA_WeightByAngle, value, R3TAG_END);
R3BOOL value;
R3GetAttrs(r3obj, R3MPRAYA_WeightByAngle, &value, R3TAG_END);

TraceMode

Attribute

TraceMode

Identifier

R3MPRAYA_TraceMode

JavaScript type

Integer

C type

R3INT

Description

Syntax


jsobj.SetTraceMode(value);
value = jsobj.GetTraceMode();


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

R3MPRAY_TRACEALL
R3MPRAY_TRACEDISTANCE
R3MPRAY_TRACEOCCLUSION