THREE JS 3D TEXT

แชร์
ฝัง
  • เผยแพร่เมื่อ 20 ธ.ค. 2024

ความคิดเห็น • 1

  • @paradise_hope
    @paradise_hope  6 หลายเดือนก่อน

    App.js
    ................................................................................................................................................
    import { useRef, Suspense } from "react";
    import {
    Text3D,
    OrbitControls,
    Center,
    Stars,
    Float,
    Sparkles,
    useMatcapTexture
    } from "@react-three/drei";
    import { Canvas, useThree } from "@react-three/fiber";
    import { Physics } from "@react-three/cannon";
    function Hero() {
    const [matcapTexture] = useMatcapTexture("CB4E88_F99AD6_F384C3_ED75B9");
    const ref = useRef();
    const { width: w, height: h } = useThree((state) => state.viewport);
    return (


    PARADISE HOPE



    );
    }
    function App() {
    return (





    );
    }
    export default App