D3DX11SHProjectCubeMap function
Projects a function represented in a cube map into spherical harmonics.
Syntax
HRESULT D3DX11SHProjectCubeMap( ID3D11DeviceContext *pContext, UINT Order, ID3D11Texture2D *pCubeMap, FLOAT *pROut, FLOAT *pGOut, FLOAT *pBOut );
Parameters
- pContext
-
Type: ID3D11DeviceContext*
A pointer to an ID3D11DeviceContext object.
- Order
-
Type: UINT
Order of the SH evaluation, generates Order^2 coefficients whose degree is Order-1. Valid range is between 2 and 6.
- pCubeMap
-
Type: ID3D11Texture2D*
A pointer to an ID3D11Texture2D that represents a cubemap that is going to be projected into spherical harmonics.
- pROut
-
Type: FLOAT*
Output SH vector for red.
- pGOut
-
Type: FLOAT*
Output SH vector for green.
- pBOut
-
Type: FLOAT*
Output SH vector for blue.
Return value
Type: HRESULT
The return value is one of the values listed in Direct3D 11 Return Codes.
Requirements
|
Header |
|
|---|---|
|
Library |
|
See also