From e9ac0aa65cca782568b07c8783aed6c05f9d902a Mon Sep 17 00:00:00 2001 From: Victor Giers Date: Thu, 2 Apr 2026 20:53:37 +0200 Subject: [PATCH] Add helper functions for advanced rendering settings formatting --- src/app/App.tsx | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/src/app/App.tsx b/src/app/App.tsx index 512302ad..b900fb2c 100644 --- a/src/app/App.tsx +++ b/src/app/App.tsx @@ -678,6 +678,32 @@ function formatWorldBackgroundLabel(world: WorldSettings): string { return "Image"; } +function formatAdvancedRenderingShadowTypeLabel(type: AdvancedRenderingShadowType): string { + switch (type) { + case "basic": + return "Basic"; + case "pcf": + return "PCF"; + case "pcfSoft": + return "PCF Soft"; + } +} + +function formatAdvancedRenderingToneMappingLabel(mode: AdvancedRenderingToneMappingMode): string { + switch (mode) { + case "none": + return "None"; + case "linear": + return "Linear"; + case "reinhard": + return "Reinhard"; + case "cineon": + return "Cineon"; + case "acesFilmic": + return "ACES Filmic"; + } +} + export function App({ store, initialStatusMessage }: AppProps) { const editorState = useEditorStoreState(store); const brushList = Object.values(editorState.document.brushes);