mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-21 10:47:04 +02:00
feat: faster lighting
This commit is contained in:
1 parent
0dea93241b
commit
87d01dab3f
2 files changed
+7
-28
No files matched your search
+4
-13
@@ -17,19 +17,10 @@ export function Lighting() {
|
||||
|
||||
return (
|
||||
<>
|
||||
<Environment preset={environment} background={showEnvironment} blur={0} />
|
||||
|
||||
<directionalLight
|
||||
position={[1, 1, -1]}
|
||||
intensity={isBrighterLighting ? 5 : 1}
|
||||
castShadow
|
||||
color={'rgb(225, 225, 255)'}
|
||||
/>
|
||||
<directionalLight
|
||||
position={[-1, 1, 1]}
|
||||
intensity={isBrighterLighting ? 4 : 1}
|
||||
castShadow
|
||||
color={'rgb(240, 255, 240)'}
|
||||
<Environment
|
||||
preset={environment}
|
||||
background={showEnvironment}
|
||||
environmentIntensity={isBrighterLighting ? 4 : 2}
|
||||
/>
|
||||
</>
|
||||
);
|
||||
|
||||
+3
-15
@@ -103,11 +103,7 @@ export const TankModel = memo(() => {
|
||||
return jsxTree(
|
||||
node,
|
||||
{
|
||||
mesh: {
|
||||
castShadow: true,
|
||||
receiveShadow: true,
|
||||
onPointerDown,
|
||||
},
|
||||
mesh: { onPointerDown },
|
||||
// group(group) {
|
||||
// return {
|
||||
// visible:
|
||||
@@ -199,11 +195,7 @@ export const TankModel = memo(() => {
|
||||
return jsxTree(
|
||||
node,
|
||||
{
|
||||
mesh: {
|
||||
castShadow: true,
|
||||
receiveShadow: true,
|
||||
onPointerDown,
|
||||
},
|
||||
mesh: { onPointerDown },
|
||||
// group(group) {
|
||||
// return {
|
||||
// visible:
|
||||
@@ -298,11 +290,7 @@ export const TankModel = memo(() => {
|
||||
return jsxTree(
|
||||
node,
|
||||
{
|
||||
mesh: {
|
||||
castShadow: true,
|
||||
receiveShadow: true,
|
||||
onPointerDown,
|
||||
},
|
||||
mesh: { onPointerDown },
|
||||
// group(group) {
|
||||
// return {
|
||||
// visible:
|
||||
|
||||
Reference in new issue
Block a user