getSphericalHarmonics

Extracts spherical harmonics coefficients from KTX1 bytes.

The returned array contains 9 float3 values (27 floats) representing the L0, L1, and L2 spherical harmonics bands stored in the KTX1 metadata.

Return

a FloatArray of 27 coefficients, or null if extraction fails

Parameters

buffer

the raw KTX1 data containing spherical harmonics metadata

Extracts spherical harmonics coefficients from KTX1 bytes.

The returned array contains 9 float3 values (27 floats) representing the L0, L1, and L2 spherical harmonics bands stored in the KTX1 metadata.

Return

a FloatArray of 27 coefficients, or null if extraction fails

Parameters

buffer

the raw KTX1 data containing spherical harmonics metadata

Extracts spherical harmonics coefficients from KTX1 bytes.

The returned array contains 9 float3 values (27 floats) representing the L0, L1, and L2 spherical harmonics bands stored in the KTX1 metadata.

Return

a FloatArray of 27 coefficients, or null if extraction fails

Parameters

buffer

the raw KTX1 data containing spherical harmonics metadata

Extracts spherical harmonics coefficients from KTX1 bytes.

The returned array contains 9 float3 values (27 floats) representing the L0, L1, and L2 spherical harmonics bands stored in the KTX1 metadata.

Return

a FloatArray of 27 coefficients, or null if extraction fails

Parameters

buffer

the raw KTX1 data containing spherical harmonics metadata

Extracts spherical harmonics coefficients from KTX1 bytes.

The returned array contains 9 float3 values (27 floats) representing the L0, L1, and L2 spherical harmonics bands stored in the KTX1 metadata.

Return

a FloatArray of 27 coefficients, or null if extraction fails

Parameters

buffer

the raw KTX1 data containing spherical harmonics metadata