I have a grid object that uses a translucent png texture.
Is there a flag or option for MeshBasicMaterial so that the back of the object is visible in front?
Here is a sample code:
var texture = THREE.ImageUtils.loadTexture('world.png');
var sphereMaterial = new THREE.MeshBasicMaterial({
map: texture,
transparent: true,
blending: THREE.AdditiveAlpha
});
sphereMaterial.depthTest = false;
var radius = 50, segments = 20, rings = 20;
var sphere = new THREE.SceneUtils.createMultiMaterialObject(
new THREE.SphereGeometry(radius, segments, rings),[
sphereMaterial,
new THREE.MeshBasicMaterial({
color: 0xa7f1ff,
opacity: 0.6,
wireframe: true
})
]);
This will accurately display the sphere, but the back side will remain invisible.
source
share