IDirect3DViewport::LightElements
HRESULT LightElements(DWORD dwElementCount, LPD3DLIGHTDATA lpData);
Calculates light intensities and colors for rendering a geometry.
·Returns D3D_OK if successful, or an error otherwise, which may be one of the following values:
dwElementCount
Number of elements to be lit.
lpData
Address of a D3DLIGHTDATA structure that contains the points to be lit and the resulting colors.