From 4235d3d62f6ff56e8bbd276bfa643c2493f82631 Mon Sep 17 00:00:00 2001 From: Bruno BELANYI Date: Thu, 19 Mar 2020 13:08:49 +0100 Subject: [PATCH] library: material: uniform: optional deserialization --- src/material/uniform.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/material/uniform.rs b/src/material/uniform.rs index 85584d1..de999b9 100644 --- a/src/material/uniform.rs +++ b/src/material/uniform.rs @@ -9,6 +9,7 @@ use serde::Deserialize; pub struct UniformMaterial { diffuse: LinearColor, specular: LinearColor, + #[serde(default)] reflectivity: f32, }