Description Adds an importance sampling with type "Scatter rays into the specular direction" to a specific surface.
Syntax impSamp = ImpSampAddSpecular ( n, iname, angle )
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 new name of the importance sampling.
angle As Double Sets the semi-angle (in degrees) of the solid angle cone.
Remarks This function adds to a specific surface an importance sampling with type "Scatter rays into the specular direction". If there is a problem the function returns -1 without setting an error.
See Also Examples
|