Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在使用三个 js,需要一种方法来绘制厚度大于 1px 的线条。每当我使用LineBasicMaterial并尝试更改lineWidth属性时,什么都没有发生。已经有一个与 Windows Chrome 版本相关的原因,所以我想问是否有任何好的、可行的替代方案可以帮助我实现粗线。
LineBasicMaterial
lineWidth
这是材料:
const material = new THREE.LineBasicMaterial({ color: "red", lineWidth: 20 });