Navigation: Scripting Reference Manual > Functions & Subroutines > GetRayMaterial

 

GetRayMaterial

 

Contact Us: fredsupport@photonengr.com

 

Description

Retrieves the current material for a specific ray in the ray buffer.  Depending on the number of rays traced, it may be necessary to dimension ray index and ray counter variables as data type Huge_ instead of Long.  Please see Multi-threaded Raytracing for more information.

 

Syntax

material = GetRayMaterial ( id )

 

Parameters

material (Long)

The identifier of the material where the ray currently exists.

 

id As Long (or Huge_)

The identifier of the ray.

 

Remarks

This function retrieves the current material for a specific ray in the ray buffer. If there is a problem the function sets an error and returns without modifying material.

 

See Also

GetRayWavelength

GetRayScatterDepth

GetRayIntersects

GetRaySpecularDepth

GetRayParent

GetRaySource

Examples

Raydata GetSet

 

 

 

 

 

Copyright © Photon Engineering, LLC