add-stereo-exp1 #1

Merged
godber merged 4 commits from add-stereo-exp1 into main 2024-04-19 08:25:13 -07:00
Showing only changes of commit 2d9326c098 - Show all commits

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>
</> </>
} }