Description Returns the BSDF value of a specified scatter model for the given incident/specular and scatter directions. This command MUST be proceeded by the ScatterPrepareForEval command in order to prepare FRED for the evaluation step. The table below shows the parameters that are used for each scatter model type. Unused parameters can be set to 0. Note that the ScatterEval function does not take a wavelength value as its argument. Evaluation of the scatter model will be performed at the default wavelength defined in your preferences.
Syntax sval = ScatterEval ( id, ainc, binc, cinc, aspec, bspec, cspec, ascat, bscat, cscat )
Parameters sval (Double) BSDF value for the specified model at the given specular and scatter directions.
id As Long Node number or identifier of scatter model.
ainc, binc, cinc As Double The incident ray direction vector. This vector need not be normalized.
aspec, bspec, cspec As Double The specular ray direction vector. This vector need not be normalized.
ascat, bscat, cscat As Double The scattered ray direction vector. This vector need not be normalized.
See Also
|