From b0b0315a6500df6eb75cc96469ea85a33d27dc08 Mon Sep 17 00:00:00 2001 From: gabotechs Date: Tue, 24 Oct 2023 19:42:50 +0200 Subject: [PATCH] fix: useLegacyLights --- src/StlViewer/StlViewer.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/StlViewer/StlViewer.tsx b/src/StlViewer/StlViewer.tsx index 9f7fbba..fdc9e14 100644 --- a/src/StlViewer/StlViewer.tsx +++ b/src/StlViewer/StlViewer.tsx @@ -47,7 +47,8 @@ const StlViewer: React.FC = ( gl={{ preserveDrawingBuffer: true, shadowMapType: PCFSoftShadowMap, - antialias: true + antialias: true, + useLegacyLights: true }} id={canvasId} style={{ width: '100%', height: '100%' }}