Function tinyraytracer::render[][src]

pub(crate) fn render(
    spheres: Vec<Box<dyn RayCollision>>,
    lights: Vec<LightSource>,
    output: &str
)

This function builds an image by simulating light rays. Each pixel of an image is translated into a light ray. For each pixel, the light ray simulation returns the color the pixel should get.