Skip to content

Commit

Permalink
fix(webxr): switch to planeGeometry for mesh
Browse files Browse the repository at this point in the history
The geometry type used in the mesh of the Html component within
the WebXR directory has been changed from planeBufferGeometry to
planeGeometry to improve the rendering performance or compatibility.
  • Loading branch information
FradSer committed Jan 28, 2024
1 parent 13122fa commit 3e64fa9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/WebXR/Html.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ export default function Html({

return (
<mesh>
<planeBufferGeometry args={[size.width, size.height]} />
<planeGeometry args={[size.width, size.height]} />
<meshBasicMaterial map={texture} side={THREE.DoubleSide} transparent />
</mesh>
)
Expand Down

0 comments on commit 3e64fa9

Please sign in to comment.