mirror of
https://github.com/Afilmory/afilmory
synced 2026-04-24 23:05:05 +00:00
remove grid helper
This commit is contained in:
@@ -781,9 +781,9 @@ export const ThreeDSceneViewer = ({
|
||||
subscribed = false
|
||||
}
|
||||
|
||||
const {requestPermission} = (DeviceOrientationEvent as typeof DeviceOrientationEvent & {
|
||||
requestPermission?: () => Promise<'granted' | 'denied'>
|
||||
})
|
||||
const { requestPermission } = DeviceOrientationEvent as typeof DeviceOrientationEvent & {
|
||||
requestPermission?: () => Promise<'granted' | 'denied'>
|
||||
}
|
||||
|
||||
const enableOrientation = async () => {
|
||||
if (orientationPermissionRef.current === 'granted') return
|
||||
@@ -868,10 +868,6 @@ export const ThreeDSceneViewer = ({
|
||||
const spark = new SparkRenderer({ renderer })
|
||||
sceneObj.add(spark)
|
||||
|
||||
const grid = new THREE.GridHelper(2.5, 10, 0x2a2f3a, 0x151822)
|
||||
grid.position.y = -0.5
|
||||
sceneObj.add(grid)
|
||||
|
||||
rendererRef.current = renderer
|
||||
sceneRef.current = sceneObj
|
||||
cameraRef.current = camera
|
||||
|
||||
Reference in New Issue
Block a user