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