fix(geometry): PlaneBufferGeometry deprecated, used PlaneGeometry
This commit is contained in:
parent
b83164f26f
commit
8b8d2bf431
1 changed files with 2 additions and 2 deletions
|
@ -4,7 +4,7 @@ import {
|
||||||
DoubleSide,
|
DoubleSide,
|
||||||
GLSL3,
|
GLSL3,
|
||||||
Mesh,
|
Mesh,
|
||||||
PlaneBufferGeometry,
|
PlaneGeometry,
|
||||||
ShaderMaterial,
|
ShaderMaterial,
|
||||||
} from 'three'
|
} from 'three'
|
||||||
|
|
||||||
|
@ -17,7 +17,7 @@ export class InfiniteGridHelper extends Mesh {
|
||||||
subgridOpacity = 0.05,
|
subgridOpacity = 0.05,
|
||||||
gridOpacity = 0.15,
|
gridOpacity = 0.15,
|
||||||
} = {}) {
|
} = {}) {
|
||||||
const geometry = new PlaneBufferGeometry(2, 2, 1, 1)
|
const geometry = new PlaneGeometry(2, 2, 1, 1)
|
||||||
|
|
||||||
const material = new ShaderMaterial({
|
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
|
// Needs to be set so threejs doesn't mess things up in glsl3 code by trying to make glsl1 forward compatible
|
||||||
|
|
Loading…
Reference in a new issue