D3DXSHMATERIAL
Microsoft DirectX 9.0 SDK Update (October 2004)

D3DXSHMATERIAL Structure


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

Syntax

typedef struct _D3DXSHMATERIAL {
    D3DCOLORVALUE Diffuse;
    BOOL bMirror;
    BOOL bSubSurf;
    FLOAT RelativeIndexOfRefraction;
    D3DCOLORVALUE Absorption;
    D3DCOLORVALUE ReducedScattering;
} D3DXSHMATERIAL;

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:

Structure Information

Headerd3dx9mesh.h
Minimum operating systems Windows 98


© 2004 Microsoft Corporation. All rights reserved.
Feedback? Please provide us with your comments on this topic.
For more help, visit the DirectX Developer Center.