From 997201b139fa52b2e2d77dec48aa4b7ab16fb571 Mon Sep 17 00:00:00 2001 From: MayaTheShy Date: Fri, 20 Feb 2026 03:05:26 -0500 Subject: [PATCH] style: Enhance lighting and shadow effects for improved visual depth and realism --- client/src/components/Map3D.jsx | 64 +++++++++++++++++++++++---------- 1 file changed, 46 insertions(+), 18 deletions(-) diff --git a/client/src/components/Map3D.jsx b/client/src/components/Map3D.jsx index 0de4944..f5afd02 100644 --- a/client/src/components/Map3D.jsx +++ b/client/src/components/Map3D.jsx @@ -736,6 +736,8 @@ function BlockTypeInstances({ blockName, blockList, textures, multiFaceTextures, { e.stopPropagation(); setHoveredBlock(block); }} onPointerOut={() => setHoveredBlock(null)} onClick={(e) => { @@ -759,11 +761,9 @@ function BlockTypeInstances({ blockName, blockList, textures, multiFaceTextures, map={faceTexture} color="#ffffff" emissive={appearance.emissive || '#000000'} - emissiveIntensity={isHovered ? 0.25 : (appearance.intensity || 0.02)} - roughness={0.8} + emissiveIntensity={isHovered ? 0.3 : (appearance.intensity || 0)} + roughness={0.85} metalness={0.0} - transparent - opacity={isHovered ? 0.98 : 0.9} /> ))} @@ -777,6 +777,8 @@ function BlockTypeInstances({ blockName, blockList, textures, multiFaceTextures, ); @@ -1200,20 +1200,46 @@ function Scene({ interactionMode, onInteraction }) { return ( <> - - - - + {/* Soft ambient base - prevents pure black shadows */} + + + {/* Hemisphere light - sky blue from above, ground brown from below */} + + + {/* Main directional sunlight with shadows */} + + + {/* Subtle fill light from opposite side to soften shadows */} + {/* Grid */} +
+