Skip to content

Instantly share code, notes, and snippets.

@graphoarty
Created February 21, 2019 19:18
Show Gist options
  • Save graphoarty/a53b48998ac156c8117038b7086df50e to your computer and use it in GitHub Desktop.
Save graphoarty/a53b48998ac156c8117038b7086df50e to your computer and use it in GitHub Desktop.
onLoad = function (texture) {
var material = new THREE.MeshBasicMaterial({
map: texture
});
var geometry = new THREE.SphereBufferGeometry(3, 32, 32);
geometry.scale( -1, 1, 1 );
var sphere = new THREE.Mesh(geometry, material);
sphere.position = camera.position;
scene.add(sphere);
renderer.render(scene, camera);
},
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment