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)]
|
#[derive(Debug, PartialEq, Deserialize)]
|
||||||
pub struct LightAggregate {
|
pub struct LightAggregate {
|
||||||
|
#[serde(default)]
|
||||||
ambients: Vec<AmbientLight>,
|
ambients: Vec<AmbientLight>,
|
||||||
|
#[serde(default)]
|
||||||
directionals: Vec<DirectionalLight>,
|
directionals: Vec<DirectionalLight>,
|
||||||
|
#[serde(default)]
|
||||||
points: Vec<PointLight>,
|
points: Vec<PointLight>,
|
||||||
|
#[serde(default)]
|
||||||
spots: Vec<SpotLight>,
|
spots: Vec<SpotLight>,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue