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 eb0024360..de8562d90 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 @@ -2,10 +2,14 @@ import { Environment } from '@react-three/drei'; import { useModel } from '../../../../../../hooks/useModel'; import { Duel } from '../../../../../../stores/duel'; import { TankopediaPersistent } from '../../../../../../stores/tankopediaPersistent'; +import { TankopediaDisplay } from '../../../../../../stores/tankopediaPersistent/constants'; export function Lighting() { const protagonist = Duel.use((state) => state.protagonist); + const display = TankopediaPersistent.use((state) => state.display); const { hasPbr } = useModel(protagonist.tank.id); + const isBrighterLighting = + hasPbr && display !== TankopediaDisplay.StaticArmor; const showEnvironment = TankopediaPersistent.use( (state) => state.showEnvironment, ); @@ -17,13 +21,13 @@ export function Lighting() {