D3DXSHMATERIAL

Spherical harmonic (SH) precomputed radiance transfer (PRT) material characteristics.

typedef struct D3DXSHMATERIAL {
    D3DCOLORVALUE Diffuse;
    BOOL bMirror;
    BOOL bSubSurf;
    FLOAT RelativeIndexOfRefraction;
    D3DCOLORVALUE Absorption;
    D3DCOLORVALUE ReducedScattering;
} D3DXSHMATERIAL, *LPD3DXSHMATERIAL;

Members

Diffuse
Diffuse albedo of the surface. This value is ignored if the object is a mirror.
bMirror
Must be set to FALSE.
bSubSurf
Set to TRUE to enable subsurface scattering; any object that does subsurface scattering cannot be a mirror.
RelativeIndexOfRefraction
Relative index of refraction is the ratio between two absolute indexes of refraction. An index of refraction is the ratio of the sine of the angle of incidence to the sine of the angle of refraction.
Absorption
The absorption coefficient is a parameter to the volume rendering equation used to model light propagation in a participating medium.
ReducedScattering
The reduced scattering coefficient is a parameter to the volume rendering equation used to model light propagation in a participating medium.

Remarks

Non-spectral scenes use the red channel from the materials instead of the luminance value.

For more information about PRT see: