Math v0.2.0
ibl.hpp File Reference

Common Image Based Lighting functions. (IBL). More...

#include "math/vector.hpp"

Variables

constexpr int32 shBandCount = 3
constexpr int32 shCoeffCount = 9

Detailed Description

Common Image Based Lighting functions. (IBL).

IBL is a technique used in physically based rendering (PBR) to simulate realistic lighting in 3D scenes by using an image to define the light environment. Instead of relying solely on traditional light sources like point lights, directional lights, or spotlights, IBL captures the complexity of real-world lighting, including ambient light, reflections, and diffuse lighting, by using images (often HDRI, High Dynamic Range Images) that represent the surrounding environment.

Based on this project: https://google.github.io/filament/Filament.html

Variable Documentation

◆ shBandCount

int32 shBandCount = 3
constexpr

Spherical harmonics band count.

◆ shCoeffCount

int32 shCoeffCount = 9
constexpr

Spherical harmonics coefficient count. (3 * 3)