Navigation: Scripting Reference Manual > Functions & Subroutines > SetRayPower

 

SetRayPower

 

Contact Us: fredsupport@photonengr.com

 

Description

Sets the power of a specified 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

SetRayPower id, power

 

Parameters

id As Long (or Huge_)

Identifier of the ray.

 

power As Double

New value for the power of the ray.

 

Remarks

This subroutine sets the power of a specified ray in the ray buffer. If there is a problem, the subroutine sets an error and returns without modifying the ray.

 

See Also

SetRayActive

SetRayDirection

SetRayPathLength

SetRayPostition

SetRayWavelength

Examples

Raydata GetSet

 

 

 

 

 

Copyright © Photon Engineering, LLC