library: render: lights: optional deserialization
This commit is contained in:
parent
e3ebd1c977
commit
8778ce81b7
1 changed files with 4 additions and 0 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue