feat: faster lighting

This commit is contained in:
tresabhi committed 2024-11-12 14:55:28 -06:00
1 parent 0dea93241b
commit 87d01dab3f
2 files changed
+7 -28

No files matched your search

@@ -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}
/>
</>
);
@@ -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: