🚀 Auto-deploy: melhoria no snap e medição AR em 24/05/2026 13:56:02
This commit is contained in:
@@ -20,6 +20,7 @@ import {
|
||||
XRSnapHandler,
|
||||
XRGrid,
|
||||
XRGridAutoFollower,
|
||||
XREnvironmentSelector,
|
||||
} from './XRSceneComponents';
|
||||
import { XRGrabbable } from './XRGrabbable';
|
||||
import { XRHitTestPlacement } from './XRHitTestPlacement';
|
||||
@@ -1203,6 +1204,7 @@ function SceneInsideXR({
|
||||
const models = useModelStore((s) => s.models);
|
||||
const activeModel = models.find(m => m.id === activeId);
|
||||
const isActiveLocked = !!activeModel?.locked;
|
||||
const xrEnvironment = useModelStore((s) => s.xrEnvironment);
|
||||
|
||||
const rigRef = useRef<THREE.Group>(null);
|
||||
const devkit = useDevKit();
|
||||
@@ -1259,9 +1261,15 @@ function SceneInsideXR({
|
||||
// Modo AR imersivo (ou SimXR)
|
||||
return (
|
||||
<>
|
||||
<ambientLight intensity={0.8} />
|
||||
<directionalLight position={[3, 5, 3]} intensity={1.2} />
|
||||
<directionalLight position={[-3, 3, -3]} intensity={0.4} />
|
||||
{xrEnvironment === 'passthrough' && (
|
||||
<>
|
||||
<ambientLight intensity={0.8} />
|
||||
<directionalLight position={[3, 5, 3]} intensity={1.2} />
|
||||
<directionalLight position={[-3, 3, -3]} intensity={0.4} />
|
||||
</>
|
||||
)}
|
||||
|
||||
<XREnvironmentSelector />
|
||||
|
||||
<group ref={rigRef}>
|
||||
<XROrigin />
|
||||
|
||||
Reference in New Issue
Block a user