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 ( return (
<> <>
<Environment preset={environment} background={showEnvironment} blur={0} /> <Environment
preset={environment}
<directionalLight background={showEnvironment}
position={[1, 1, -1]} environmentIntensity={isBrighterLighting ? 4 : 2}
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)'}
/> />
</> </>
); );
@@ -103,11 +103,7 @@ export const TankModel = memo(() => {
return jsxTree( return jsxTree(
node, node,
{ {
mesh: { mesh: { onPointerDown },
castShadow: true,
receiveShadow: true,
onPointerDown,
},
// group(group) { // group(group) {
// return { // return {
// visible: // visible:
@@ -199,11 +195,7 @@ export const TankModel = memo(() => {
return jsxTree( return jsxTree(
node, node,
{ {
mesh: { mesh: { onPointerDown },
castShadow: true,
receiveShadow: true,
onPointerDown,
},
// group(group) { // group(group) {
// return { // return {
// visible: // visible:
@@ -298,11 +290,7 @@ export const TankModel = memo(() => {
return jsxTree( return jsxTree(
node, node,
{ {
mesh: { mesh: { onPointerDown },
castShadow: true,
receiveShadow: true,
onPointerDown,
},
// group(group) { // group(group) {
// return { // return {
// visible: // visible: