Navigation: Scripting Reference Manual > Functions & Subroutines > SetSourceDirSphere

 

SetSourceDirSphere

 

Contact Us: fredsupport@photonengr.com

 

Description

Sets the number of random directions from a source with a "Random directions into a sphere" ray directions type.  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

SetSourceDirSphere n, dirCount

 

Parameters

n As Long

Node number of the source.

 

dirCount As Long (or Huge_)

The new number of directions from the source.

 

Remarks

This subroutine sets the number of random directions from a source with a "Random directions into a sphere" ray directions type. If there is a problem the subroutine returns without modifying the source or setting an error.

 

See Also

IsSourceDirSphere

GetSourceDirSphere

Examples

Sources

 

 

 

 

 

Copyright © Photon Engineering, LLC