pub struct DispInfo {
pub power: u8,
pub start_position: String,
pub flags: Option<u32>,
pub elevation: f32,
pub subdiv: bool,
pub normals: DispRows,
pub distances: DispRows,
pub offsets: DispRows,
pub offset_normals: DispRows,
pub alphas: DispRows,
pub triangle_tags: DispRows,
pub allowed_verts: IndexMap<String, Vec<i32>>,
}Expand description
Represents the displacement information for a side.
Fields§
§power: u8The power of the displacement map (2, 3, or 4).
start_position: StringThe starting position of the displacement.
flags: Option<u32>Flags for the displacement.
elevation: f32The elevation of the displacement.
subdiv: boolWhether the displacement is subdivided.
normals: DispRowsThe normals for each vertex in the displacement.
distances: DispRowsThe distances for each vertex in the displacement.
offsets: DispRowsThe offsets for each vertex in the displacement.
offset_normals: DispRowsThe offset normals for each vertex in the displacement.
alphas: DispRowsThe alpha values for each vertex in the displacement.
The triangle tags for the displacement.
allowed_verts: IndexMap<String, Vec<i32>>The allowed vertices for the displacement.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for DispInfo
impl<'de> Deserialize<'de> for DispInfo
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl VmfSerializable for DispInfo
impl VmfSerializable for DispInfo
Auto Trait Implementations§
impl Freeze for DispInfo
impl RefUnwindSafe for DispInfo
impl Send for DispInfo
impl Sync for DispInfo
impl Unpin for DispInfo
impl UnwindSafe for DispInfo
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more