반투명 한 png 텍스처를 사용하는 메쉬 개체가 있습니다.three.js에 대한 뒷면 가시성이 있습니까?
MeshBasicMaterial에 대해 오브젝트 뒷면이 정면에서 볼 수 있도록 플래그 또는 옵션이 있습니까? 여기
은 몇 가지 예제 코드입니다 :var texture = THREE.ImageUtils.loadTexture('world.png');
// create the sphere's material
var sphereMaterial = new THREE.MeshBasicMaterial({
map: texture,
transparent: true,
blending: THREE.AdditiveAlpha
});
sphereMaterial.depthTest = false;
// set up the sphere vars
var radius = 50, segments = 20, rings = 20;
// create a new mesh with sphere geometry -
var sphere = new THREE.SceneUtils.createMultiMaterialObject(
new THREE.SphereGeometry(radius, segments, rings),[
sphereMaterial,
new THREE.MeshBasicMaterial({
color: 0xa7f1ff,
opacity: 0.6,
wireframe: true
})
]);
이 정확하게 구를 렌더링하지만 다시는 보이지 않는 남아있다.
sphere.doubleSided = true;