-
-
Save roundrobin/3701381 to your computer and use it in GitHub Desktop.
just another inlet to tributary
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
{"editor_editor":{"coffee":false,"vim":false,"emacs":false,"width":485,"height":611,"hide":false},"endpoint":"curiosity"} |
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
var positionX = 12; | |
var positionY = 10; | |
var positionZ = 40; | |
var rows = 2; | |
var cols = 2; | |
var sphere = []; | |
// set up the sphere vars | |
var radius = 65, | |
segments = 16, | |
rings = 16; | |
// create a new mesh with | |
// sphere geometry - we will cover | |
// the sphereMaterial next! | |
var sphereMaterial = | |
new THREE.MeshLambertMaterial( | |
{ | |
color: 0xCC0000 | |
}); | |
var sphere = new THREE.Mesh( | |
new THREE.SphereGeometry( | |
radius, | |
segments, | |
rings), | |
sphereMaterial); | |
sphere.position.x = -73; | |
sphere.position.y = 165; | |
sphere.position.z = 130; | |
// add the sphere to the scene | |
tributary.scene.add( sphere ); | |
var pointLight = new THREE.PointLight(0xFFFFFF); | |
// set its position | |
pointLight.position.x = 6; | |
pointLight.position.y = -150; | |
pointLight.position.z = 409; | |
tributary.scene.add( pointLight ); | |
tributary.animate = function () { | |
requestAnimationFrame( tributary.animate ); | |
tributary.render(); | |
stats.update(); | |
//cube.rotation.x += 0.01; | |
//cube.rotation.y += 0.02; | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment