mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-21 02:37:05 +02:00
feat: better lighting in shooting range
This commit is contained in:
1 parent
2fe3c50bef
commit
2eadad8612
1 file changed
+6
-7
+6
-7
@@ -21,13 +21,11 @@ export function Lighting() {
|
||||
|
||||
return (
|
||||
<>
|
||||
{display !== TankopediaDisplay.ShootingRange && (
|
||||
<Environment
|
||||
preset={environment}
|
||||
background={showEnvironment}
|
||||
environmentIntensity={isBrighterLighting ? 3 : 1}
|
||||
/>
|
||||
)}
|
||||
<Environment
|
||||
preset={environment}
|
||||
background={showEnvironment}
|
||||
environmentIntensity={isBrighterLighting ? 3 : 1}
|
||||
/>
|
||||
{display === TankopediaDisplay.ShootingRange && (
|
||||
<>
|
||||
<directionalLight position={[0, -1, 0]} />
|
||||
@@ -36,6 +34,7 @@ export function Lighting() {
|
||||
<directionalLight
|
||||
key={index}
|
||||
castShadow
|
||||
intensity={3 / LIGHTS_COUNT}
|
||||
position={[
|
||||
Math.sin(2 * Math.PI * (index / LIGHTS_COUNT)),
|
||||
1,
|
||||
|
||||
Reference in new issue
Block a user