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