Computer Graphics, Python, Mathematics, Game Development, Game Design.
towards the camera. What if the ray hits multiple objects before hitting the camera ? This is reflection. The ray will accumulate different colors and when it strikes the camera you will see reflections. Let’s do it. Each object has a reflection coefficient in the range 0–1. “0” means the object is