feat: change cube lighting to standard mat
This commit is contained in:
@@ -18,7 +18,12 @@ const SealCube = forwardRef<Mesh>((props, ref) => {
|
||||
return (
|
||||
<mesh ref={meshRef} position={[0, 3, 0]} castShadow receiveShadow>
|
||||
<boxGeometry args={[0.85, 0.85, 0.85]} />
|
||||
<meshBasicMaterial map={texture} depthWrite={true} />
|
||||
<meshStandardMaterial
|
||||
map={texture}
|
||||
roughness={0.4}
|
||||
metalness={0.1}
|
||||
envMapIntensity={1.2}
|
||||
/>
|
||||
</mesh>
|
||||
);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user