Navigation: Scripting Reference Manual > Functions & Subroutines > ImpSampSetSpecular

 

ImpSampSetSpecular

 

Contact Us: fredsupport@photonengr.com

 

Description

Sets the properties of the specified Specular Importance Sampling specification.

 

Syntax

ImpSampSetSpecular n, indx, angle

 

Parameters

n As Long

Node number of the surface.

 

indx As Long

The index (zero based) of the importance sampling specification.

 

angle As Double

Sets the semi-angle (in degrees) of the solid angle cone for the importance sampling specification.

 

Remarks

This subroutine sets the properties of the Specular Importance Sampling specification. If the type was not previously "Specular", or if there is another problem, the subroutine sets an error and returns without modifying the Importance Sampling specification.

 

See Also

ImpSampAddSpecular

ImpSampGetSpecular

Examples

Importance Samples

 

 

 

 

 

Copyright © Photon Engineering, LLC