mirror of
https://codeberg.org/icewind/vmt-parser.git
synced 2026-08-02 12:24:46 +02:00
released vdf-reader
This commit is contained in:
parent
79c4221a65
commit
f39661ca95
21 changed files with 395 additions and 31 deletions
25
src/material/modulate.rs
Normal file
25
src/material/modulate.rs
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
use super::deserialize_path;
|
||||
use serde::{Deserialize, Serialize};
|
||||
|
||||
#[derive(Debug, Clone, Serialize, Deserialize)]
|
||||
pub struct ModulateMaterial {
|
||||
/// Multiplies the color behind it with this surface's texture.
|
||||
#[serde(rename = "$basetexture", deserialize_with = "deserialize_path")]
|
||||
pub base_texture: String,
|
||||
/// Doubles the modulation, making it appear brighter. 1 enables this, 0 disables. Disabled by default.
|
||||
#[serde(rename = "$mod2x", default)]
|
||||
pub mod_2x: bool,
|
||||
/// Disables backface culling.
|
||||
#[serde(rename = "$nocull", default)]
|
||||
pub no_cull: bool,
|
||||
}
|
||||
|
||||
#[derive(Debug, Clone, Serialize, Deserialize, Default)]
|
||||
#[serde(rename_all = "snake_case")]
|
||||
pub enum SpriteOrientation {
|
||||
ParallelUpright,
|
||||
#[default]
|
||||
VpParallel,
|
||||
Oriented,
|
||||
VpParallelOriented,
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue