SphericalHarmonics

data class SphericalHarmonics(val bands: Int, val coefficients: FloatArray)

Spherical harmonics coefficients for diffuse irradiance.

Parameters

bands

Number of SH bands (1, 2, or 3 — determines coefficient count: 1, 4, or 9).

coefficients

Packed RGB SH coefficients; length must be bands² × 3.

Constructors

Link copied to clipboard
constructor(bands: Int, coefficients: FloatArray)

Properties

Link copied to clipboard
val bands: Int
Link copied to clipboard

Functions

Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
open override fun hashCode(): Int