gpt4 book ai didi

javascript - 面无背

转载 作者:行者123 更新时间:2023-11-29 22:17:59 25 4
gpt4 key购买 nike

我有那个代码:

var roofGeometry = new THREE.Geometry();

roofGeometry.vertices.push(
new THREE.Vector3(-0.5, 0, 0.5),
new THREE.Vector3(0.5, 0, 0.5),
new THREE.Vector3(0, 1, 0.5),
new THREE.Vector3(0.5, 0, -0.5),
new THREE.Vector3(0, 1, -0.5),
new THREE.Vector3(-0.5, 0, -0.5)
);
roofGeometry.faces.push(
new THREE.Face3(0, 1, 2),
//new THREE.Face4(1, 3, 4, 2),
new THREE.Face3(5, 3, 4)/*,
new THREE.Face4(0, 5, 4, 2)*/
);
//...

http://jsfiddle.net/jFyFJ

为什么旋转时三 Angular 形会消失?

最佳答案

在 Material 中使用side: THREE.DoubleSide

jsfiddle

关于javascript - 面无背,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/14013229/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com