library: render: scene: optional deserialization

This commit is contained in:
Bruno BELANYI 2020-03-19 12:59:04 +01:00
parent 8778ce81b7
commit 9857879a75

View file

@ -211,9 +211,13 @@ fn reflected(incident: Vector, normal: Vector) -> Vector {
#[derive(Debug, PartialEq, Deserialize)]
struct SerializedScene {
camera: Camera,
#[serde(default)]
lights: LightAggregate,
#[serde(default)]
objects: Vec<Object>,
#[serde(default)]
aliasing_limit: u32,
#[serde(default)]
reflection_limit: u32,
}