Advertisement
Guest User

Untitled

a guest
Feb 12th, 2016
48
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.61 KB | None | 0 0
  1. pano = [
  2. 'scenes/4/2048/px.jpg', 'scenes/4/2048/nx.jpg',
  3. 'scenes/4/2048/py.jpg', 'scenes/4/2048/ny.jpg',
  4. 'scenes/4/2048/pz.jpg', 'scenes/4/2048/nz.jpg',
  5. ];
  6. newCubeTexture = cubeTextureLoader.load(pano);
  7. geometry = new THREE.BoxGeometry(20000, 20000, 20000);
  8. material = new THREE.MeshBasicMaterial({
  9. envMap: newCubeTexture,
  10. side: THREE.BackSide,
  11. color: 0xffffff,
  12. transparent: true,
  13. opacity: 0
  14. });
  15. mesh = new THREE.Mesh(geometry, material);
  16.  
  17. new THREE.MeshBasicMaterial({
  18. map: new THREE.ImageUtils.loadTexture(arr[i]),
  19. side: THREE.BackSide,
  20. transparent: true,
  21. opacity: 0
  22. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement