From 162e71a9e30d60e3bdcf6cdc3d2812369c9dd2c1 Mon Sep 17 00:00:00 2001 From: Greggman Date: Fri, 29 Aug 2025 21:20:15 -0700 Subject: [PATCH] Fix for toneMapping mode check The spec says `toneMapping` won't exist if this isn't supported. --- sample/particles/main.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sample/particles/main.ts b/sample/particles/main.ts index ee1f9d18..e8646a1e 100644 --- a/sample/particles/main.ts +++ b/sample/particles/main.ts @@ -355,7 +355,7 @@ function getHdrFolderName() { } if ( simulationParams.toneMappingMode === 'extended' && - context.getConfiguration().toneMapping.mode !== 'extended' + context.getConfiguration().toneMapping?.mode !== 'extended' ) { return "HDR settings ⚠️ Browser doesn't support HDR canvas"; }