Where the journey of physically based rendering begins.

# The Rendering Equation

The physical basis for the rendering equation is the **law of conservation of energy**. Assuming that L denotes radiance, we have that at each particular position and direction, the outgoing light (Lo) is the sum of the emitted light (Le) and the reflected light. The reflected light itself is the sum from all directions of the incoming light (Li) multiplied by the surface reflection and cosine of the incident angle.

- $L_o$ - light (radiance) directed outward along direction $\omega_o$ (light received by camera)
- $\omega_o$ - the direction of the outgoing light (view direction)
- $L_e$ - light (radiance) emitted
- $\int_{\Omega }\dots \,\mathrm{d}\omega_i$ - integral over $\Omega$
- $\Omega$ - the unit hemisphere centered around $n$ containing all possible values for $\omega_i$
- $f(\omega_i, \omega_o)$ - the bidirectional reflectance distribution function (BRDF), the proportion of light reflected from $\omega_i$ to $\omega_o$
- $\omega_i$ - the negative direction of the incoming light
- $L_i$ - light coming inward from direction $\omega_i$
- $n$ - the surface normal
- $\omega_i\cdot n$ - the weakening factor of outward irradiance due to incident angle $\cos \theta_{i}$ (Lambertâ€™s Cosine Law)

The above equation is one type of simplified versions, and here is the a more extended explanation:

TBC