Navigation: Scripting Reference Manual > Data Structures > T_HARVEYSHACKEXTENDEDSCATTER

 

T_HARVEYSHACKEXTENDEDSCATTER

 

Contact Us: fredsupport@photonengr.com

 

Description

Data structure for attributes of the Extended Harvey-Shack scatter model.

 

Definition

Type T_HARVEYSHACKEXTENDEDSCATTER

b0 As Double

L As Double

S As Double

P As Double

Q As Double

Name As String

Description As String

ApplyRefl As Boolean

ApplyTrans As Boolean

HaltIncident As Boolean

End Type

 

Members

b0

BRDF value at B=B0.

 

L

Value of B-B0 for the "knee" of the curve.

 

S

Slope for large B-B0 values.

 

P

Power of the g term for the BRDF near specular.

 

Q

Power of the g term for the BRDF at the knee.

 

Name

Name of the model.

 

Description

Description of the model.

 

ApplyRefl

Determines if the scatter model is applied on reflection.

 

ApplyTrans

Determines if the scatter model is applied on transmission.

 

HaltIncident

Determines if the scatter model halts the incident ray.

 

 

Example

The following example script uses T_HARVEYSHACKEXTENDEDSCATTER to initialize and add a new Extended Harvey-Shack scatter model.

 

Sub Main

 

    Dim tScatter As T_HARVEYSHACKEXTENDEDSCATTER

    Dim sNode As Long

    InitHarveyShackExtendedScatter( tScatter )

        tScatter.ApplyRefl    = True

        tScatter.ApplyTrans   = False

        tScatter.Description  = "Extended Harvey Shack Model"

        tScatter.HaltIncident = False

        tScatter.name         = "Example EHS"

        tScatter.b0           = 1.0

        tScatter.l            = 0.1

        tScatter.S            = -2

        tScatter.P            = 2

        tScatter.Q            = 1

    sNode = AddHarveyShackExtendedScatter( tScatter )

 

    Update

 

End Sub

 

See Also

AddHarveyShackExtendedScatter

GetHarveyShackExtendedScatter

InitHarveyShackExtendedScatter

SetHarveyShackExtendedScatter

 

 

 

 

 

Copyright © Photon Engineering, LLC