clay-core 0.1.3

Core functionality for Clay - fast, modular and extendable ray tracer
Documentation
1
2
3
4
5
6
7
8
9
10
11
use std::collections::HashSet;
use crate::prelude::*;


/// View is an entity the represents virtual camera.
///
/// It produce initial rays (we use backward ray propagation) and defines their origin point and direction.
pub trait View: Store {
    /// Source code of the view.
    fn source(cache: &mut HashSet<u64>) -> String;
}