From 2ad0fcfdf9a034380dcabf4e681971b7cc5317ea Mon Sep 17 00:00:00 2001 From: tresabhi <43380238+tresabhi@users.noreply.github.com> Date: Mon, 16 Dec 2024 12:24:37 -0600 Subject: [PATCH] feat: better hdr --- .../components/TankSandbox/components/Lighting.tsx | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/packages/website/src/components/Tankopedia/HeroSection/components/TankSandbox/components/Lighting.tsx b/packages/website/src/components/Tankopedia/HeroSection/components/TankSandbox/components/Lighting.tsx index 1d78e1098..60632446b 100644 --- a/packages/website/src/components/Tankopedia/HeroSection/components/TankSandbox/components/Lighting.tsx +++ b/packages/website/src/components/Tankopedia/HeroSection/components/TankSandbox/components/Lighting.tsx @@ -1,9 +1,9 @@ import { Environment } from '@react-three/drei'; import { times } from 'lodash-es'; +import { Euler } from 'three'; import { useModel } from '../../../../../../hooks/useModel'; import { Duel } from '../../../../../../stores/duel'; import { TankopediaEphemeral } from '../../../../../../stores/tankopediaEphemeral'; -import { TankopediaPersistent } from '../../../../../../stores/tankopediaPersistent'; import { TankopediaDisplay } from '../../../../../../stores/tankopediaPersistent/constants'; const LIGHTS_COUNT = 5; @@ -14,17 +14,13 @@ export function Lighting() { const { hasPbr } = useModel(protagonist.tank.id); const isBrighterLighting = !hasPbr && display !== TankopediaDisplay.StaticArmor; - const showEnvironment = TankopediaPersistent.use( - (state) => state.showEnvironment, - ); - const environment = TankopediaPersistent.use((state) => state.environment); return ( <> {display === TankopediaDisplay.ShootingRange && ( <>