Skip to content

Commit

Permalink
fix: useLegacyLights
Browse files Browse the repository at this point in the history
  • Loading branch information
gabotechs committed Oct 24, 2023
1 parent 9343fdf commit b0b0315
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/StlViewer/StlViewer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,8 @@ const StlViewer: React.FC<StlViewerProps> = (
gl={{
preserveDrawingBuffer: true,
shadowMapType: PCFSoftShadowMap,
antialias: true
antialias: true,
useLegacyLights: true
}}
id={canvasId}
style={{ width: '100%', height: '100%' }}
Expand Down

0 comments on commit b0b0315

Please sign in to comment.