From 8b8d2bf43114202b7aec72b10447323a02772187 Mon Sep 17 00:00:00 2001 From: Colin Duffy Date: Wed, 12 Jul 2023 09:27:05 -0700 Subject: [PATCH] fix(geometry): PlaneBufferGeometry deprecated, used PlaneGeometry --- packages/r3f/src/extension/InfiniteGridHelper/index.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/r3f/src/extension/InfiniteGridHelper/index.ts b/packages/r3f/src/extension/InfiniteGridHelper/index.ts index 6cb76ad..09588f4 100644 --- a/packages/r3f/src/extension/InfiniteGridHelper/index.ts +++ b/packages/r3f/src/extension/InfiniteGridHelper/index.ts @@ -4,7 +4,7 @@ import { DoubleSide, GLSL3, Mesh, - PlaneBufferGeometry, + PlaneGeometry, ShaderMaterial, } from 'three' @@ -17,7 +17,7 @@ export class InfiniteGridHelper extends Mesh { subgridOpacity = 0.05, gridOpacity = 0.15, } = {}) { - const geometry = new PlaneBufferGeometry(2, 2, 1, 1) + const geometry = new PlaneGeometry(2, 2, 1, 1) const material = new ShaderMaterial({ // Needs to be set so threejs doesn't mess things up in glsl3 code by trying to make glsl1 forward compatible