Skip to content

Commit 58fd7e1

Browse files
authored
Fix for toneMapping mode check (#537)
The spec says `toneMapping` won't exist if this isn't supported.
1 parent 586b141 commit 58fd7e1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sample/particles/main.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -348,7 +348,7 @@ function getHdrFolderName() {
348348
}
349349
if (
350350
simulationParams.toneMappingMode === 'extended' &&
351-
context.getConfiguration().toneMapping.mode !== 'extended'
351+
context.getConfiguration().toneMapping?.mode !== 'extended'
352352
) {
353353
return "HDR settings ⚠️ Browser doesn't support HDR canvas";
354354
}

0 commit comments

Comments
 (0)