2

私はそのコードを持っています:

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

三角形を回転させたときに三角形が消えるのはなぜですか?

4

1 に答える 1

2

side: THREE.DoubleSide材料での使用

jsfiddle

于 2012-12-23T18:08:03.950 に答える