🚀 Auto-deploy: melhoria no snap e medição AR em 24/05/2026 13:56:02

This commit is contained in:
2026-05-24 13:56:02 +00:00
parent fd9082510f
commit 84b8a452a1
4 changed files with 175 additions and 48 deletions
+11 -3
View File
@@ -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 />