mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-24 20:19:49 +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 (
|
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,
|
||||||
|
|||||||
Reference in new issue
Block a user