add debug labels and some missing shapes

This commit is contained in:
Brian Beck 2025-11-23 21:47:49 -08:00
parent 7557d2c48e
commit 878c798bcd
21 changed files with 385 additions and 147 deletions

View file

@ -10,6 +10,7 @@ import { InspectorControls } from "@/src/components/InspectorControls";
import { SettingsProvider } from "@/src/components/SettingsProvider";
import { ObserverCamera } from "@/src/components/ObserverCamera";
import { AudioProvider } from "@/src/components/AudioContext";
import { DebugElements } from "@/src/components/DebugElements";
// three.js has its own loaders for textures and models, but we need to load other
// stuff too, e.g. missions, terrains, and more. This client is used for those.
@ -35,11 +36,12 @@ function MapInspector() {
<QueryClientProvider client={queryClient}>
<main>
<SettingsProvider>
<Canvas shadows>
<Canvas shadows frameloop="always">
<AudioProvider>
<ObserverControls />
<Mission key={missionName} name={missionName} />
<ObserverCamera />
<DebugElements />
</AudioProvider>
<EffectComposer>
<N8AO intensity={3} aoRadius={3} quality="performance" />

View file

@ -45,3 +45,15 @@ main {
#speedInput {
max-width: 80px;
}
.StaticShapeLabel {
background: rgba(0, 0, 0, 0.5);
color: #fff;
font-size: 11px;
white-space: nowrap;
}
.StatsPanel {
left: auto !important;
right: 0;
}