Skip to content

Commit b436ad7

Browse files
committed
chore: docs
1 parent 28ce370 commit b436ad7

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

README.md

+13
Original file line numberDiff line numberDiff line change
@@ -1877,6 +1877,19 @@ type SplatProps = {
18771877
<Splat src="https://huggingface.co/cakewalk/splat-data/resolve/main/nike.splat" />
18781878
```
18791879

1880+
In order to depth sort multiple splats correectly you can either use alphaTest, for instance with a low value. But keep in mind that this can show a slight outline under some viewing conditions.
1881+
1882+
```jsx
1883+
<Splat alphaTest={0.1} src="foo.splat" />
1884+
<Splat alphaTest={0.1} src="bar.splat" />
1885+
```
1886+
1887+
You can also use alphaHash, but this can be slower and create some noise, you would typically get rid of the noise in postprocessing with a TAA pass. You don't have to use alphaHash on all splats.
1888+
1889+
```jsx
1890+
<Splat alphaHash src="foo.splat" />
1891+
```
1892+
18801893
# Shaders
18811894

18821895
#### MeshReflectorMaterial

0 commit comments

Comments
 (0)