Solving the Rendering Equation

The rendering equation is a fundamental concept in computer graphics used to calculate the color of a surface based on the light sources illuminating it. The equation is:

  
                L = ∫∫∫∫ E · cosθ * f(r) * ρ(r, l) * (I_l * cosθ + I_s) / (∑i λ_i * e^{−λ_i d_i})  
            

Note: This is a simplified version of the rendering equation used for educational purposes.