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, *LPD3DXSHMATERIAL;

Members

Diffuse

Type: D3DCOLORVALUE

Diffuse albedo of the surface. This value is ignored if the object is a mirror.

bMirror

Type: BOOL

Must be set to FALSE.

bSubSurf

Type: BOOL

Set to TRUE to enable subsurface scattering; any object that does subsurface scattering cannot be a mirror.

RelativeIndexOfRefraction

Type: FLOAT

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

Type: D3DCOLORVALUE

The absorption coefficient is a parameter to the volume rendering equation used to model light propagation in a participating medium.

ReducedScattering

Type: D3DCOLORVALUE

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:

  • Jensen, Henrik Wann, et al. Siggraph Proceedings: A Practical Model for Subsurface Light Transport, 2001.

Requirements

Requirement Value
Header
D3dx9mesh.h

See also

D3DX Structures