Description Adds a single incoherent ray to 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 id = AddRay ( r )
Parameters id (Long or Huge_) The function returns the ray identifier of the added ray.
r As T_RAY Structure containing parameters of the ray to be added to the ray buffer.
Remarks This function adds a ray to the ray buffer and returns its identifier.
Also note that ray properties may be individually set and retrieved via the SetRayXXX and GetRayXXX family of script commands.
See Also Examples
|