feat: better lighting in shooting range

This commit is contained in:
tresabhi committed 2024-12-12 18:31:49 -06:00
1 parent 2fe3c50bef
commit 2eadad8612
1 file changed
+6 -7
@@ -21,13 +21,11 @@ export function Lighting() {
return ( return (
<> <>
{display !== TankopediaDisplay.ShootingRange && ( <Environment
<Environment preset={environment}
preset={environment} background={showEnvironment}
background={showEnvironment} environmentIntensity={isBrighterLighting ? 3 : 1}
environmentIntensity={isBrighterLighting ? 3 : 1} />
/>
)}
{display === TankopediaDisplay.ShootingRange && ( {display === TankopediaDisplay.ShootingRange && (
<> <>
<directionalLight position={[0, -1, 0]} /> <directionalLight position={[0, -1, 0]} />
@@ -36,6 +34,7 @@ export function Lighting() {
<directionalLight <directionalLight
key={index} key={index}
castShadow castShadow
intensity={3 / LIGHTS_COUNT}
position={[ position={[
Math.sin(2 * Math.PI * (index / LIGHTS_COUNT)), Math.sin(2 * Math.PI * (index / LIGHTS_COUNT)),
1, 1,