mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-24 12:09:51 +02:00
yeah
This commit is contained in:
1 parent
91945a3b27
commit
281549add3
1 file changed
+4
-4
@@ -1,3 +1,4 @@
|
|||||||
|
import { Environment } from '@react-three/drei';
|
||||||
import { useModel } from '../../../../../hooks/useModel';
|
import { useModel } from '../../../../../hooks/useModel';
|
||||||
import { useDuel } from '../../../../../stores/duel';
|
import { useDuel } from '../../../../../stores/duel';
|
||||||
|
|
||||||
@@ -7,20 +8,19 @@ export function Lighting() {
|
|||||||
|
|
||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
{/* <Environment preset="warehouse" /> */}
|
<Environment preset="warehouse" />
|
||||||
<directionalLight
|
<directionalLight
|
||||||
position={[1, 1, -1]}
|
position={[1, 1, -1]}
|
||||||
intensity={hasPbr ? 4 : 5}
|
intensity={hasPbr ? 1 : 5}
|
||||||
castShadow
|
castShadow
|
||||||
color={'rgb(225, 225, 255)'}
|
color={'rgb(225, 225, 255)'}
|
||||||
/>
|
/>
|
||||||
<directionalLight
|
<directionalLight
|
||||||
position={[-1, 1, 1]}
|
position={[-1, 1, 1]}
|
||||||
intensity={hasPbr ? 3 : 4}
|
intensity={hasPbr ? 1 : 4}
|
||||||
castShadow
|
castShadow
|
||||||
color={'rgb(240, 255, 240)'}
|
color={'rgb(240, 255, 240)'}
|
||||||
/>
|
/>
|
||||||
<ambientLight intensity={1} />
|
|
||||||
</>
|
</>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
Reference in new issue
Block a user