THREE JS 3D TEXT

Поділитися
Вставка
  • Опубліковано 21 жов 2024

КОМЕНТАРІ • 1

  • @paradise_hope
    @paradise_hope  4 місяці тому

    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