add doublesided

This commit is contained in:
Austin Godber 2024-04-14 15:23:14 -07:00
parent 26eff21b0d
commit 2d9326c098

View File

@ -1,5 +1,6 @@
import { useThree, extend } from '@react-three/fiber' import { useThree, extend } from '@react-three/fiber'
import { OrbitControls } from '@react-three/drei' import { OrbitControls } from '@react-three/drei'
import { DoubleSide } from 'three'
export default function Experience() export default function Experience()
{ {
@ -13,12 +14,12 @@ export default function Experience()
<mesh position-y={ 5 } scale={ 10 }> <mesh position-y={ 5 } scale={ 10 }>
<planeGeometry /> <planeGeometry />
<meshStandardMaterial color="blue"/> <meshStandardMaterial color="blue" side={DoubleSide}/>
</mesh> </mesh>
<mesh position-y={ - 1 } rotation-x={ - Math.PI * 0.5 } scale={ 10 }> <mesh position-y={ - 1 } rotation-x={ - Math.PI * 0.5 } scale={ 10 }>
<planeGeometry /> <planeGeometry />
<meshStandardMaterial color="grey" /> <meshStandardMaterial color="grey" side={DoubleSide}/>
</mesh> </mesh>
</> </>
} }