real-pepe
v1.0.0
Published
A React Three.js component for rendering an animated Pepe 3D model
Downloads
51
Readme
Pepe React Component
A React Three.js component for rendering an animated Pepe 3D model.
Installation
npm install real-pepeUsage
First, make sure you have the required peer dependencies installed:
npm install @react-three/fiber @react-three/drei threeThen, use the component in your React application:
import { Canvas } from "@react-three/fiber";
import { PepeModel } from "real-pepe";
function App() {
return (
<Canvas>
<ambientLight intensity={0.5} />
<pointLight position={[10, 10, 10]} />
<PepeModel position={[0, 0, 0]} />
</Canvas>
);
}Make sure to place your pepe.glb model file in your public directory so it can be accessed at /pepe.glb.
Props
The component accepts all standard Three.js group props from @react-three/fiber, including:
position: [x, y, z] coordinatesrotation: [x, y, z] rotation in radiansscale: number or [x, y, z] scale factors
License
MIT
