strålspårning
Strålspårning, or ray tracing in English, is a rendering technique used in computer graphics to produce highly realistic images. It simulates the physical behavior of light by tracing the path of individual light rays as they travel from a camera, through a scene, and interact with objects. When a ray hits a surface, its behavior is determined by the material properties of that surface. This can involve reflection, where the ray bounces off in a new direction, refraction, where the ray bends as it passes through a transparent material, or absorption, where the ray's energy is taken in by the material.
The core idea is to reverse the process of how light reaches a viewer. Instead of simulating
This physically-based approach allows ray tracing to accurately model complex lighting phenomena such as soft shadows,