Created
April 22, 2015 19:25
-
-
Save eklimcz-zz/980d5cbc26923234e9c0 to your computer and use it in GitHub Desktop.
Threejs extrude geometry
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
//use Extrude Geometry to give it depth, and add it to the scene. | |
var geometry = new THREE.ExtrudeGeometry( cube, | |
{ | |
bevelEnabled: false, bevelSegments: 0, steps:20, amount: 80 | |
}); | |
//we're using a dark gray flat material | |
cubeMesh = new THREE.Mesh( geometry, new THREE.MeshLambertMaterial( { | |
color: 0x333333, | |
shading: THREE.FlatShading | |
})); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment