Created
July 10, 2013 03:09
-
-
Save nklsrh/5963189 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
// 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