C Specification

The XrSphericalHarmonicsANDROID structure contains spherical harmonics representing the lighting of the scene.

// Provided by XR_ANDROID_light_estimation
typedef struct XrSphericalHarmonicsANDROID {
    XrStructureType                    type;
    void*                              next;
    XrLightEstimateStateANDROID        state;
    XrSphericalHarmonicsKindANDROID    kind;
    float                              coefficients[9][3];
} XrSphericalHarmonicsANDROID;

Members

Member Descriptions

Description

The coefficients are to be used in a special function which takes a direction as an input and outputs the light color coming from that direction. More detail available in R. Ramamoorthi and P. Hanrahan, "An efficient representation for irradiance environment maps," in SIGGRAPH '01: Proceedings of the 28th annual conference on Computer graphics and interactive techniques, ACM, Aug. 2001, pp. 497-500. doi:10.1145/383259.383317.

Valid Usage (Implicit)

See Also

Document Notes

For more information, see the OpenXR Specification

This page is extracted from the OpenXR Specification. Fixes and changes should be made to the Specification, not directly.

Copyright 2014-2026 The Khronos Group Inc.