SphericalHarmonics.ProjectCubeMap Method |
Language: |
Projects a function represented on a cube map into spherical harmonics (SH).
Visual Basic Public Shared Sub ProjectCubeMap( _
ByVal order As Integer, _
ByVal cubeMap As CubeTexture, _
ByVal redOutput() As Single, _
ByVal greenOutput() As Single, _
ByVal blueOutput() As Single _
)C# public static void ProjectCubeMap(
int order,
CubeTexture cubeMap,
float[] redOutput,
float[] greenOutput,
float[] blueOutput
);C++ public:
static void ProjectCubeMap(
int order,
CubeTexture^ cubeMap,
array<float>^ redOutput,
array<float>^ greenOutput,
array<float>^ blueOutput
);JScript public static function ProjectCubeMap(
order : int,
cubeMap : CubeTexture,
redOutput : float[],
greenOutput : float[],
blueOutput : float[]
);
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 System.Single[]
Output SH vector for the red component.greenOutput System.Single[]
Output SH vector for the green component.blueOutput System.Single[]
Output SH vector for the red component.
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