Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
// ---------------------------------
// Based on Aerotwist's cool tutorial -
// ---------------------------------
// set up the sphere vars
// lower 'segment' and 'ring' values will increase performance
var radius = 5,
segments = 6,
rings = 6;
// create the sphere's material
var sphereMaterial =
new THREE.MeshLambertMaterial(
color: 0xD43001
// Create a ball with sphere geometry
var ball = new THREE.Mesh(
new THREE.SphereGeometry(radius,
// add the sphere to the scene

This comment has been minimized.

Copy link

@aterribili aterribili commented Jan 16, 2017

I fixed the line 23, it was missing the end ). Look at:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.