SphericalHarmonics.ProjectCubeMap Method

Language:

Projects a function represented on a cube map into spherical harmonics (SH).

Definition

Visual Basic Public Shared Sub ProjectCubeMap( _
    ByVal order As Integer, _
    ByVal cubeMap As CubeTexture, _
    ByVal redOutput As GraphicsStream, _
    ByVal greenOutput As GraphicsStream, _
    ByVal blueOutput As GraphicsStream _
)
C# public static void ProjectCubeMap(
    int order,
    CubeTexture cubeMap,
    GraphicsStream redOutput,
    GraphicsStream greenOutput,
    GraphicsStream blueOutput
);
C++ public:
static void ProjectCubeMap(
    int order,
    CubeTexturecubeMap,
    GraphicsStreamredOutput,
    GraphicsStreamgreenOutput,
    GraphicsStreamblueOutput
);
JScript public static function ProjectCubeMap(
    order : int,
    cubeMap : CubeTexture,
    redOutput : GraphicsStream,
    greenOutput : GraphicsStream,
    blueOutput : GraphicsStream
);

Parameters

order System.Int32
Order of the SH evaluation. Must be in the range of SphericalHarmonics.MinimumOrder to SphericalHarmonics.MaximumOrder, inclusive. The evaluation generates order2 coefficients. The degree of the evaluation is order - 1.
cubeMap Microsoft.DirectX.Direct3D.CubeTexture
A CubeTexture object used as the source cube map.
redOutput Microsoft.DirectX.GraphicsStream
Output SH vector for the blue component.
greenOutput Microsoft.DirectX.GraphicsStream
Output SH vector for the green component.
blueOutput Microsoft.DirectX.GraphicsStream
Output SH vector for the blue component.

Remarks

Exceptions
InvalidCallException The method call is invalid. For example, a method's parameter might contain an invalid value.


Send comments about this topic to Microsoft. © Microsoft Corporation. All rights reserved.

Feedback? Please provide us with your comments on this topic.
For more help, visit the DirectX Developer Center