Microsoft DirectX 8.0 (C++)

D3DXMatrixShadow

Builds a matrix that flattens geometry into a plane.

D3DXMATRIX* D3DXMatrixShadow(
  D3DXMATRIX* pOut,
  CONST D3DXVECTOR4* pLight,
  CONST D3DXPLANE* pPlane
); 

Parameters

pOut
[in, out] Pointer to the D3DXMATRIX structure that is the result of the operation.
pLight
[in] Pointer to a D3DXVECTOR4 structure describing the light's position.
pPlane
[in] Pointer to the source D3DXPLANE structure.

Return Values

Pointer to a D3DXMATRIX structure that flattens geometry into a plane.

Remarks

The D3DXMatrixShadow function flattens geometry into a plane, as if casting a shadow from a light.

The return value for this function is the same value returned in the pOut parameter. In this way, the D3DXMatrixShadow function can be used as a parameter for another function.

Requirements

  Header: Declared in D3dx8math.h.
  Import Library: Use D3dx8.lib.