D3DXSHADD function

xiaoxiao2021-03-06  97

D3DXSHADD function

Two spherical tunes and functions (SH) are added. In other words, it is pout [i] = pa [i] pb [i].

definition:

FLOAT * WINAPI D3DXSHADD (

Float * pout,

Uint Order,

Const float * Pa,

Const float * PB

);

parameter:

pout

[OUT] points to the SH output coefficient. This factor is generated by generating the ORDER2 factor.

ORDER

ORDER calculated by the SH function. The range must be between D3DXSH_MINORDER to D3DXSH_MAXORDER. This value generates the ORDER2 factor, the index of the coefficient is ORDER - 1.

PA

[in] points to the first SH function vector.

PB

[in] points to the second SH function vector.

return value:

Returns the SH output coefficient.

Description:

Each coefficient of the base function YLM is present in the memory L2 M L position, where:

• The number of Index of the L base function.

· M is the base function index value, from a given L value, from -1 to L.

Function information:

HEADER

D3DX9Math.h

Import Library

D3DX9.LIB

Minimum operation systems

WINDOWS 98

Related Information:

Precomputed Radiance Transfer

转载请注明原文地址:https://www.9cbs.com/read-104818.html

New Post(0)