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
12
use std::collections::HashSet;
use crate::Store;


/// Scene is the something that could be rendered.
///
/// Scenes designed to be the collection of objects.
/// It is responsible for iterating over objects, handling secondary rays,
/// implementing some specific rendering techniques (like importance sampling), etc.
pub trait Scene: Store {
    fn source(cache: &mut HashSet<u64>) -> String;
}