|
Math v0.2.0
SIMD optimized C++ mathematics library
|
Common spherical harmonics functions. More...
Variables | |
| constexpr math::int32 | sh2Count = 4 |
| constexpr math::int32 | sh3Count = 9 |
| constexpr math::int32 | sh4Count = 16 |
| constexpr float | ki3 [sh3Count] |
| Precomputed Lambertian reflection coefficients for the 3 band spherical harmonics. | |
Common spherical harmonics functions.
Spherical harmonics (SH) are used to represent functions on the surface of a sphere, particularly for lighting and shading. SH allows for efficient approximations of complex lighting environments, such as image-based lighting (IBL), by encoding diffuse light and low-frequency details. SH are commonly used in precomputed radiance transfer (PRT) to achieve realistic lighting with low computational cost, especially for dynamic and global illumination in 3D scenes, enabling real-time performance in games.
Based on this project: https://google.github.io/filament/Filament.html
|
constexpr |
L1 spherical harmonics coefficient count. (2 * 2)
|
constexpr |
L2 spherical harmonics coefficient count. (3 * 3)
|
constexpr |
L3 spherical harmonics coefficient count. (4 * 4)
|
constexpr |
Precomputed Lambertian reflection coefficients for the 3 band spherical harmonics.