@playcanvas/react
Version:
A React renderer for PlayCanvas – build interactive 3D applications using React's declarative paradigm.
15 lines (14 loc) • 555 B
TypeScript
import { FC } from "react";
import { GSplatComponent } from "playcanvas";
import { PublicProps } from "../utils/types-utils";
/**
* The GSplat component allows an entity to render a Gaussian Splat.
* @param {GSplatProps} props - The props to pass to the GSplat component.
* @see https://api.playcanvas.com/engine/classes/GSplatComponent.html
* @example
* const { data: splat } = useSplat('./splat.ply')
* <GSplat asset={splat} />
*/
export declare const GSplat: FC<GSplatProps>;
type GSplatProps = Partial<PublicProps<GSplatComponent>>;
export {};