GSplat
Gaussian Splats are a new way of capturing and rendering high quality 3D content. They capture the shape and lighting of a scene in a way that produces incredibly high quality results. See the Splat demo for a working example.
Usage
Once you load a Gaussian Splat model, you can use the GSplat
component to render it.
splat.jsx
import { GSplat } from '@playcanvas/react/components'
import { useSplat } from '@playcanvas/react/hooks'
const Splat = (( src, ...props )) => {
const { asset } = useSplat(src)
if (!asset) return null
return (<Entity {...props}>
<GSplat asset={asset} />
</Entity>)
}
Props
The following props are based on the GSplat Component from PlayCanvas version 2.7.3. This documentation is automatically generated from the TypeScript types of the installed PlayCanvas package.
Last updated on