How to Add Texture on 3D Object in R3F react three fiber

Ғылым және технология

Пікірлер: 1

  • @paradise_hope
    @paradise_hope9 ай бұрын

    import React from 'react'; import { Canvas } from '@react-three/fiber'; import { OrbitControls, useTexture, Plane, Box } from '@react-three/drei'; import { BoxBufferGeometry, MeshBasicMaterial, Mesh } from 'three'; import I from '../src/image.jpg' function TexturedBox() { const t =useTexture(I) return ( ); } function App() { return ( ); } export default App;

Келесі