Skip to content

Commit b019445

Browse files
authored
SplatViewer Antialiasing (#201)
* Enhance SplatViewer component by adding graphicsDeviceOptions for improved rendering performance * Added changeset for SplatViewer initialization to ensure it starts without anti-aliasing.
1 parent f9c923f commit b019445

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

.changeset/metal-pianos-remain.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@playcanvas/blocks": patch
3+
---
4+
5+
Ensure SplatViewer is initialized without anti-aliasing

packages/blocks/src/splat-viewer/splat-viewer.tsx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,11 @@ export function SplatViewer( {
215215
subscribe={subscribe}
216216
>
217217
<Suspense fallback={<PosterComponent poster={poster} />} >
218-
<Application fillMode={FILLMODE_NONE} resolutionMode={RESOLUTION_AUTO} autoRender={false}>
218+
<Application
219+
fillMode={FILLMODE_NONE}
220+
resolutionMode={RESOLUTION_AUTO}
221+
autoRender={false}
222+
graphicsDeviceOptions={{ antialias: false }}>
219223
<SplatComponent src={src} onAssetProgress={onAssetProgress} variant={variant} />
220224
</Application>
221225
<TooltipProvider>

0 commit comments

Comments
 (0)