首页 > 解决方案 > Remove vertical grid lines gridHelper Three.js

问题描述

I'm using gridHelper but I need to remove the vertical lines (only need the horizontal ones), is there a way to do it?

This is my current implementation (I'm using r3f)

<gridHelper args={[50, 6, 'black`, `black`]} position={[0,-3,0]} />

Constructor

GridHelper( size : number, divisions : Number, colorCenterLine : Color, colorGrid : Color )

There is no options to enable or disable vertical lines, also following documentation I cant see it.

https://threejs.org/docs/#api/en/helpers/GridHelper

标签: javascriptreactjsthree.jsreact-three-fiber

解决方案


推荐阅读