@playcanvas/react
Version:
A React renderer for PlayCanvas – build interactive 3D applications using React's declarative paradigm.
28 lines (27 loc) • 824 B
TypeScript
import { FC } from "react";
import { Asset, 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>;
interface GSplatProps extends Partial<PublicProps<GSplatComponent>> {
/**
* The asset to use for the GSplat.
*/
asset: Asset;
/**
* The vertex shader to use for the GSplat.
*/
vertex?: string;
/**
* The fragment shader to use for the GSplat.
*/
fragment?: string;
}
export {};