Navigation: Scripting Reference Manual > Functions & Subroutines > ImpSampAddEntity

 

ImpSampAddEntity

 

Contact Us: fredsupport@photonengr.com

 

Description

Adds an importance sampling with type "Scatter rays toward an entity" to a specific surface.

 

Syntax

impSamp = ImpSampAddEntity ( n, iname, entity )

 

Parameters

impSamp (Long)

The index (zero based) into the list of the surface's new importance sampling.

 

n As Long

Node number of the surface.

 

iname As String

The name of the new importance sampling.

 

entity As Long

Node number of the entity that is the target of the scattered rays.

 

Remarks

This function adds to a specific surface an importance sampling with type "Scatter rays toward an entity". If there is a problem the function returns -1 and does not set an error.

 

See Also

ImpSampGetEntity

ImpSampSetEntity

Examples

Importance Samples

 

 

 

 

 

Copyright © Photon Engineering, LLC