### Starting Development Server (Bash) Source: https://github.com/pmndrs/react-three-gpu-pathtracer/blob/main/README.md Commands to navigate to the project root, install dependencies using yarn, and start the local development server. ```bash cd project-root\nyarn\nyarn dev ``` -------------------------------- ### Building the Project (Bash) Source: https://github.com/pmndrs/react-three-gpu-pathtracer/blob/main/README.md Command to build the project for production or distribution using yarn. ```bash yarn build ``` -------------------------------- ### Publishing the Package (Bash) Source: https://github.com/pmndrs/react-three-gpu-pathtracer/blob/main/README.md Commands to navigate into the package directory and run the npm release script, typically used for publishing new versions. ```bash cd package\nnpm run release ``` -------------------------------- ### Configuring OrbitControls with makeDefault (JSX) Source: https://github.com/pmndrs/react-three-gpu-pathtracer/blob/main/README.md Shows how to use the `makeDefault` prop on `OrbitControls` (preferably imported from `@react-three/drei`) when setting up controls within the pathtracer scene. This ensures the controls are correctly integrated. ```jsx \n // ... ``` -------------------------------- ### Basic Usage of Pathtracer Component (JSX) Source: https://github.com/pmndrs/react-three-gpu-pathtracer/blob/main/README.md Demonstrates the basic structure for using the component within a react-three-fiber . It shows how to import the component and wrap the scene content to enable path tracing. Requires the @react-three/gpu-pathtracer package. ```jsx import { Pathtracer } from "@react-three/gpu-pathtracer"; function GradientSphere() { return ( {/* Your scene */} ); } ``` -------------------------------- ### Adding Environment Map with Pathtracer (JSX) Source: https://github.com/pmndrs/react-three-gpu-pathtracer/blob/main/README.md Shows how to integrate Drei's component within the to add an environment map to the path-traced scene. It highlights common environment map properties like preset, background, backgroundBlurriness, and backgroundIntensity. Requires the @react-three/gpu-pathtracer and @react-three/drei packages. ```jsx ``` -------------------------------- ### Accessing Pathtracer Hook Functions (TypeScript) Source: https://github.com/pmndrs/react-three-gpu-pathtracer/blob/main/README.md Demonstrates how to destructure the `usePathtracer` hook to access the internal renderer (`pathtracer` or deprecated `renderer`), `update`, and `reset` functions. This hook must be used within the `` component. ```typescript const { renderer, update, reset } = usePathtracer(); ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.