From e216b4cd6becdd33197ccc04925739432a6d588f Mon Sep 17 00:00:00 2001 From: tresabhi <43380238+tresabhi@users.noreply.github.com> Date: Fri, 30 Oct 2026 16:49:43 -0500 Subject: [PATCH] fix 1 pixel lights --- .../components/TankSandbox/components/Lighting.tsx | 6 ++++++ 1 file changed, 6 insertions(+) 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 8ce7701ca..4acaa5669 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 @@ -165,6 +165,7 @@ export function Lighting({ hasPbr }: Props) { key={index} position={position} intensity={intensity} + userData={{ intensity }} penumbra={1} castShadow={highGraphics} decay={1} @@ -215,6 +216,11 @@ function Animator({ for (const child of wrapper.current.children) { if (child instanceof SpotLight) { child.angle = ANGLE * t * factor; + child.intensity = child.userData.intensity; + + if (child.angle === 0) { + child.intensity = 0; + } } else if (child instanceof HemisphereLight) { child.intensity = HEMISPHERE_INTENSITY * t * factor; }