Created
February 21, 2019 19:18
-
-
Save graphoarty/a53b48998ac156c8117038b7086df50e to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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