clay_core/scene/scene.rs
1use std::collections::HashSet;
2use crate::Store;
3
4
5/// Scene is the something that could be rendered.
6///
7/// Scenes designed to be the collection of objects.
8/// It is responsible for iterating over objects, handling secondary rays,
9/// implementing some specific rendering techniques (like importance sampling), etc.
10pub trait Scene: Store {
11 fn source(cache: &mut HashSet<u64>) -> String;
12}