Skip to content

Instantly share code, notes, and snippets.

@nklsrh
Created July 10, 2013 03:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nklsrh/5963189 to your computer and use it in GitHub Desktop.
Save nklsrh/5963189 to your computer and use it in GitHub Desktop.
// create the plane's material
var planeMaterial =
new THREE.MeshLambertMaterial(
{
color: 0x4BD121
});
// create the playing surface plane
var plane = new THREE.Mesh(
new THREE.PlaneGeometry(
planeWidth * 0.95, // 95% of table width, since we want to show where the ball goes out-of-bounds
planeHeight,
planeQuality,
planeQuality),
planeMaterial);
scene.add(plane);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment