diff --git a/src/render/scene.rs b/src/render/scene.rs index b1d9066..578ea48 100644 --- a/src/render/scene.rs +++ b/src/render/scene.rs @@ -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, + #[serde(default)] aliasing_limit: u32, + #[serde(default)] reflection_limit: u32, }