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.
我很难设置 WireframeMaterial 的宽度。在我从 2.5 升级到 3.6 之前,一切都运行良好
我在做:
var mat = WireframeMaterial(0xff0000, {width:4, alpha:alphaValue});
但这根本不起作用,宽度仍设置为 1 !
知道如何解决吗?
非常感谢您,
我猜你的意思不是宽度,而是线框材料的厚度。您还想更改线框的 alpha 值。
解决方案是像这样设置 WireframeMaterial 的属性thickness和wireAlpha:
thickness
wireAlpha
var material:WireframeMaterial = new WireframeMaterial(0xff0000, {thickness: 4, wireAlpha: alphaValue});