update
This commit is contained in:
@ -1,6 +1,5 @@
|
|||||||
import useModelStore, { DecalSticker } from "@/store/useModelStore";
|
import useModelStore, { DecalSticker } from "@/store/useModelStore";
|
||||||
import { Decal, useTexture } from "@react-three/drei";
|
import { Decal, useTexture } from "@react-three/drei";
|
||||||
import { Euler } from "three";
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* logo 和文字标签
|
* logo 和文字标签
|
||||||
@ -17,7 +16,7 @@ const Sticker = ({ decal }: { decal: DecalSticker }) => {
|
|||||||
// }, 10)
|
// }, 10)
|
||||||
return (
|
return (
|
||||||
<Decal
|
<Decal
|
||||||
debug={true}
|
// debug={true}
|
||||||
position={decal.postion}
|
position={decal.postion}
|
||||||
scale={decal.scale}
|
scale={decal.scale}
|
||||||
onPointerDown={(ev) => {
|
onPointerDown={(ev) => {
|
||||||
|
|||||||
@ -135,14 +135,13 @@ export const Stickers = () => {
|
|||||||
};
|
};
|
||||||
|
|
||||||
const ThreeScene = () => {
|
const ThreeScene = () => {
|
||||||
// const hdr = useTexture("/venice_sunset_1k.hdr")
|
|
||||||
return (
|
return (
|
||||||
<Canvas>
|
<Canvas>
|
||||||
<ambientLight></ambientLight>
|
<ambientLight></ambientLight>
|
||||||
<pointLight position={[10, 10, 10]}></pointLight>
|
<pointLight position={[10, 10, 10]}></pointLight>
|
||||||
<perspectiveCamera />
|
<perspectiveCamera />
|
||||||
<CapModel />
|
<CapModel />
|
||||||
<axesHelper />
|
{/* <axesHelper /> */}
|
||||||
<Environment files={"/venice_sunset_1k.hdr"} background={false} />
|
<Environment files={"/venice_sunset_1k.hdr"} background={false} />
|
||||||
</Canvas>
|
</Canvas>
|
||||||
);
|
);
|
||||||
|
|||||||
Reference in New Issue
Block a user