library: material: uniform: optional deserialization

This commit is contained in:
Bruno BELANYI 2020-03-19 13:08:49 +01:00
parent c4a40fab25
commit 4235d3d62f

View file

@ -9,6 +9,7 @@ use serde::Deserialize;
pub struct UniformMaterial {
diffuse: LinearColor,
specular: LinearColor,
#[serde(default)]
reflectivity: f32,
}