[][src]Module tray_rust::film::camera

Provides a camera based on a single transformation that positions it in the scene

Scene Usage Example

The camera must specify information about its position in the world, the image dimensions and the number of samples to take per pixel.

"camera": {
    "width": 800,
    "height": 600,
    "samples" 512,
    "fov": 50.0
    "transform": [
        {
            "type": "translate",
            "translation": [0, 12, -60]
        }
    ]
}

Structs

Camera

Our camera for the ray tracer, has a transformation to position it in world space