Description Sets the values for an importance sampling specification of type "Scatter rays into a given direction".
Syntax ImpSampSetDir n, indx, angle, x, y, z, entity
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 new semi-angle (in degrees) of the solid angle cone for the importance sampling specification.
x As Double Sets the new X component of the direction vector.
y As Double Sets the new Y component of the direction vector.
z As Double Sets the new Z component of the direction vector.
entity As Long Sets the node number of the FRED entity whose coordinate system will define the direction vector. Other valid values are: -1 = Global coordinate system -2 = Self -3 = Local surface normal forward only (overrides the direction vector) -4 = Local surface normal forward and backward (overrides the direction vector)
Remarks This subroutine sets the values for an importance sampling specification of type "Scatter rays into the specular direction". If the type was not previously Specular, of if there is another problem, the subroutine sets an error and returns without modifying the importance sampling specification.
See Also Examples
|