Skip to content

Commit

Permalink
Update threejs
Browse files Browse the repository at this point in the history
The lighting changed in this release, so had to tweak the lighting properties to get the same look as before.
  • Loading branch information
nhowell committed Aug 16, 2023
1 parent e5613bc commit d1c1f30
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 13 deletions.
2 changes: 1 addition & 1 deletion .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@
// Doesn't work correctly with some react-three-fiber properties.
"react/no-unknown-property": [
"error",
{ "ignore": ["args", "attach", "intensity", "position"] }
{ "ignore": ["args", "attach", "decay", "intensity", "position"] }
]
}
}
16 changes: 8 additions & 8 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
"react-dom": "^18.2.0",
"react-query": "^3.33.4",
"react-router-dom": "^6.0.2",
"three": "^0.154.0",
"three": "^0.155.0",
"unique-names-generator": "^4.7.1",
"use-count-up": "^3.0.1"
},
Expand All @@ -42,7 +42,7 @@
"@types/react": "^18.0.27",
"@types/react-dom": "^18.0.10",
"@types/react-router-dom": "^5.3.3",
"@types/three": "^0.154.0",
"@types/three": "^0.155.0",
"@typescript-eslint/eslint-plugin": "^6.0.0",
"@typescript-eslint/parser": "^6.0.0",
"@vitejs/plugin-react-swc": "^3.1.0",
Expand Down
4 changes: 2 additions & 2 deletions src/features/systems/map/SystemMap.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@ export function SystemMap(props: IOwnProps): ReactElement {
/>
<color attach="background" args={["black"]} />
<polarGridHelper args={[120, 8, 12, 64, 0x101f48, 0x101f48]} />
<ambientLight intensity={0.1} />
<pointLight position={[0, 0, 0]} />
<ambientLight intensity={0.3} />
<pointLight position={[0, 0, 0]} intensity={3} decay={0} />
<Stars
radius={10000}
depth={5000}
Expand Down

1 comment on commit d1c1f30

@vercel
Copy link

@vercel vercel bot commented on d1c1f30 Aug 16, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.