Add helper functions for formatting box volume mode and render path labels in App.tsx

This commit is contained in:
2026-04-06 08:28:19 +02:00
parent 720a182305
commit f3abebeb17

View File

@@ -897,6 +897,26 @@ function formatAdvancedRenderingToneMappingLabel(mode: AdvancedRenderingToneMapp
}
}
function formatBoxVolumeModeLabel(mode: BoxBrushVolumeMode): string {
switch (mode) {
case "none":
return "None";
case "water":
return "Water";
case "fog":
return "Fog";
}
}
function formatBoxVolumeRenderPathLabel(path: BoxVolumeRenderPath): string {
switch (path) {
case "performance":
return "Performance";
case "quality":
return "Quality";
}
}
export function App({ store, initialStatusMessage }: AppProps) {
const editorState = useEditorStoreState(store);
const brushList = Object.values(editorState.document.brushes);