feat(m3a): playable flame client with camera, hud and device perf gate
This commit is contained in:
@@ -105,6 +105,11 @@ impl Terrain {
|
||||
self.heights.is_empty()
|
||||
}
|
||||
|
||||
/// Raw heightmap samples (read-only view, used by the renderer).
|
||||
pub fn heights(&self) -> &[u16] {
|
||||
&self.heights
|
||||
}
|
||||
|
||||
/// Surface height at sample index.
|
||||
pub fn height_at(&self, idx: usize) -> u16 {
|
||||
self.heights[idx.min(SAMPLES - 1)]
|
||||
|
||||
Reference in New Issue
Block a user