Skip to main content

oxiphysics_io/gltf/
gltfmaterial_traits.rs

1//! # GltfMaterial - Trait Implementations
2//!
3//! This module contains trait implementations for `GltfMaterial`.
4//!
5//! ## Implemented Traits
6//!
7//! - `Default`
8//!
9//! 🤖 Generated with [SplitRS](https://github.com/cool-japan/splitrs)
10
11#[allow(unused_imports)]
12use super::functions::*;
13use super::types::GltfMaterial;
14
15impl Default for GltfMaterial {
16    fn default() -> Self {
17        GltfMaterial {
18            name: String::new(),
19            base_color_factor: [1.0, 1.0, 1.0, 1.0],
20            metallic_factor: 1.0,
21            roughness_factor: 1.0,
22            emissive_factor: [0.0, 0.0, 0.0],
23            alpha_mode: "OPAQUE".to_string(),
24            alpha_cutoff: 0.5,
25            double_sided: false,
26        }
27    }
28}