library: render: lights: optional deserialization
This commit is contained in:
parent
e3ebd1c977
commit
8778ce81b7
|
@ -4,9 +4,13 @@ use std::iter::Iterator;
|
|||
|
||||
#[derive(Debug, PartialEq, Deserialize)]
|
||||
pub struct LightAggregate {
|
||||
#[serde(default)]
|
||||
ambients: Vec<AmbientLight>,
|
||||
#[serde(default)]
|
||||
directionals: Vec<DirectionalLight>,
|
||||
#[serde(default)]
|
||||
points: Vec<PointLight>,
|
||||
#[serde(default)]
|
||||
spots: Vec<SpotLight>,
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue