ssloy/tinyraytracer

Colored Light Sources

liestrela opened this issue · 0 comments

How can i add color to the light sources?
How would I calculate the color reflected from a diffuse surface when the light source is not white? Also, does distance factor in differently in this case?