library: material: uniform: optional deserialization
This commit is contained in:
parent
c4a40fab25
commit
4235d3d62f
|
@ -9,6 +9,7 @@ use serde::Deserialize;
|
||||||
pub struct UniformMaterial {
|
pub struct UniformMaterial {
|
||||||
diffuse: LinearColor,
|
diffuse: LinearColor,
|
||||||
specular: LinearColor,
|
specular: LinearColor,
|
||||||
|
#[serde(default)]
|
||||||
reflectivity: f32,
|
reflectivity: f32,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue