我的球形网格有彩色纹理。
var Material = new THREE.MeshBasicMaterial( {
blending : THREE.NormalBlending,
transparent: true,
map : THREE.ImageUtils.loadTexture( "texture.jpg" ),
opacity : 0.3,
} );
sphere = new THREE.Mesh( new THREE.SphereGeometry( (100), 32, 32 ), Material );
scene.add( sphere );
获取点击的点:
var raycaster = new THREE.Raycaster();
raycaster.setFromCamera( mouse, camera );
var intersects = raycaster.intersectObjects( cameradestinations, true );
if ( intersects.length > 0 ) {
var mypoint = intersects[0].point
}
如何在点击的点mypoint
中获取当前纹理颜色?