chore: tune lighting and world plane material

This commit is contained in:
Tom Boullay
2026-05-27 00:09:26 +02:00
parent d816e4b07e
commit a6787a7ecb
2 changed files with 9 additions and 8 deletions
+7 -7
View File
@@ -1,14 +1,14 @@
export const AMBIENT_LIGHT_COLOR = "#dbeafe"; export const AMBIENT_LIGHT_COLOR = "#dfe7d8";
export const SUN_LIGHT_COLOR = "#fff7ed"; export const SUN_LIGHT_COLOR = "#ffe2bf";
export const LIGHTING_DEFAULTS = { export const LIGHTING_DEFAULTS = {
ambientColor: AMBIENT_LIGHT_COLOR, ambientColor: AMBIENT_LIGHT_COLOR,
ambientIntensity: 1.8, ambientIntensity: 0.9,
sunColor: SUN_LIGHT_COLOR, sunColor: SUN_LIGHT_COLOR,
sunIntensity: 2.8, sunIntensity: 2.2,
sunX: 60, sunX: 70,
sunY: 80, sunY: 45,
sunZ: 30, sunZ: 35,
}; };
export const AMBIENT_INTENSITY_MIN = 0; export const AMBIENT_INTENSITY_MIN = 0;
+2 -1
View File
@@ -11,10 +11,11 @@ export function WorldPlane(): React.JSX.Element | null {
<mesh <mesh
name="world-plane" name="world-plane"
position={[center[0], planeY, center[2]]} position={[center[0], planeY, center[2]]}
receiveShadow
rotation={[-Math.PI / 2, 0, 0]} rotation={[-Math.PI / 2, 0, 0]}
> >
<planeGeometry args={size} /> <planeGeometry args={size} />
<meshBasicMaterial color={planeColor} /> <meshStandardMaterial color={planeColor} roughness={1} />
</mesh> </mesh>
); );
} }