feat: readd lobby lighting for static mode

This commit is contained in:
tresabhi committed 2024-12-22 20:27:36 -06:00
1 parent e9d1c82a60
commit b1f0d4d844
1 file changed
+5
@@ -18,11 +18,16 @@ export function Lighting() {
return ( return (
<> <>
{display !== TankopediaDisplay.StaticArmor && (
<Environment <Environment
files="https://dl.polyhaven.org/file/ph-assets/HDRIs/hdr/1k/winter_river_1k.hdr" files="https://dl.polyhaven.org/file/ph-assets/HDRIs/hdr/1k/winter_river_1k.hdr"
environmentIntensity={isBrighterLighting ? 1.5 : 1} environmentIntensity={isBrighterLighting ? 1.5 : 1}
environmentRotation={new Euler(0, degToRad(180), 0)} environmentRotation={new Euler(0, degToRad(180), 0)}
/> />
)}
{display === TankopediaDisplay.StaticArmor && (
<Environment preset="lobby" />
)}
{display === TankopediaDisplay.ShootingRange && ( {display === TankopediaDisplay.ShootingRange && (
<> <>
<directionalLight position={[0, -1, 0]} /> <directionalLight position={[0, -1, 0]} />