Hi, I’m new in the Three.js
I want to create a 3D room using react three fiber
All the walls are just like this:
<mesh receiveShadow castShadow position={[-2.0,1.0,-6]} rotation={[0,0,0]}>
<boxBufferGeometry attach="geometry" args={[4,2, 0.1]} />
<meshPhongMaterial attach="material" color='grey'/>
</mesh>
I added a DirectionalLight:
<directionalLight castShadow
shadow-mapSize-width={1024}
shadow-mapSize-height={1024}
shadow-camera-bottom={-50}
shadow-camera-left={-50}
shadow-camera-right={50}
shadow-camera-top={50}
position={[-15, 10, -20]}
intensity={3} ref={lightRef}
target-position={[0, 0, 0]}/>
Why there are some light artifacts on the wall joints?