add doublesided
This commit is contained in:
		@@ -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>
 | 
				
			||||||
  </>
 | 
					  </>
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
		Reference in New Issue
	
	Block a user