Changes
Co-authored-by: Reifonas <211114984+Reifonas@users.noreply.github.com>
This commit is contained in:
@@ -1236,6 +1236,7 @@ export function ModelViewerCanvas({ url }: ModelViewerProps) {
|
|||||||
gl.setPixelRatio(Math.min(window.devicePixelRatio, maxRatio));
|
gl.setPixelRatio(Math.min(window.devicePixelRatio, maxRatio));
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
|
<CameraSwitcher />
|
||||||
<ambientLight intensity={0.6} />
|
<ambientLight intensity={0.6} />
|
||||||
<directionalLight position={[5, 10, 5]} intensity={1} castShadow />
|
<directionalLight position={[5, 10, 5]} intensity={1} castShadow />
|
||||||
<directionalLight position={[-5, 5, -5]} intensity={0.3} />
|
<directionalLight position={[-5, 5, -5]} intensity={0.3} />
|
||||||
@@ -1264,12 +1265,15 @@ export function ModelViewerCanvas({ url }: ModelViewerProps) {
|
|||||||
dampingFactor={0.1}
|
dampingFactor={0.1}
|
||||||
minDistance={0.05}
|
minDistance={0.05}
|
||||||
maxDistance={50}
|
maxDistance={50}
|
||||||
|
minZoom={5}
|
||||||
|
maxZoom={5000}
|
||||||
enabled={!positionMode}
|
enabled={!positionMode}
|
||||||
ref={(c: any) => {
|
ref={(c: any) => {
|
||||||
mainControlsRef.current = c;
|
mainControlsRef.current = c;
|
||||||
}}
|
}}
|
||||||
/>
|
/>
|
||||||
|
|
||||||
|
|
||||||
</Canvas>
|
</Canvas>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user