vmt_parser/material/
cable.rs1use super::deserialize_path;
2use serde::{Deserialize, Serialize};
3
4#[derive(Debug, Clone, Serialize, Deserialize)]
5pub struct CableMaterial {
6 #[serde(rename = "$basetexture", deserialize_with = "deserialize_path")]
8 pub base_texture: String,
9 #[serde(rename = "$bumpmap", default, deserialize_with = "deserialize_path")]
11 pub bump_map: Option<String>,
12
13 #[serde(rename = "$vertexcolor", default)]
15 pub vertex_color: bool,
16
17 #[serde(rename = "$minlight", default = "default_min_light")]
19 pub min_light: f32,
20 #[serde(rename = "$maxlight", default = "default_max_light")]
22 pub max_light: f32,
23
24 #[serde(rename = "$nocull", default)]
26 pub no_cull: bool,
27}
28
29fn default_min_light() -> f32 {
30 0.1
31}
32fn default_max_light() -> f32 {
33 0.3
34}