pub struct WaterMesh {
pub vertices: Vec<[u8; 16]>,
pub indices: Vec<u16>,
pub rivers: Vec<[i32; 4]>,
pub lakes: Vec<[i32; 4]>,
}Expand description
The map’s water mesh: the strips of the rivers, then the surfaces of the lakes.
A vertex is 16 bytes: i16 x, y (1/48 cell), i16 z (1/256), 0, i16 u, v, the normal
bytes 0x7f, 0x7f, an alpha byte, and 0.
Original: FUN_1400b0730.
Fields§
§vertices: Vec<[u8; 16]>The vertices.
indices: Vec<u16>The indices, each relative to the first vertex of its range.
rivers: Vec<[i32; 4]>The range of each river: first index, first vertex, vertex count, index count.
lakes: Vec<[i32; 4]>The range of each lake, in the same form as rivers.
Trait Implementations§
impl StructuralPartialEq for WaterMesh
Auto Trait Implementations§
impl Freeze for WaterMesh
impl RefUnwindSafe for WaterMesh
impl Send for WaterMesh
impl Sync for WaterMesh
impl Unpin for WaterMesh
impl UnsafeUnpin for WaterMesh
impl UnwindSafe for WaterMesh
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