feat(m3a): playable flame client with camera, hud and device perf gate

This commit is contained in:
2026-10-24 22:54:29 +02:00
parent e77595eaf0
commit a30784479b
15 changed files with 1238 additions and 144 deletions
+5
View File
@@ -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)]