Created
October 10, 2013 14:12
-
-
Save naoyashiga/6919044 to your computer and use it in GitHub Desktop.
Cubeの各面に異なるマテリアルを使うときはTHREE.jsのバージョンに注意! ref: http://qiita.com/naoyashiga/items/269a9bc3658956afc379
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 cube_geo = new THREE.CubeGeometry( | |
CUBE_WIDTH, | |
CUBE_HEIGHT, | |
CUBE_DEPTH, | |
CUBE_WIDTH_SEGMENTS, | |
CUBE_HEIGHT_SEGMENTS, | |
CUBE_DEPTH_SEGMENTS | |
); | |
//空のマテリアル | |
var cube_material = new THREE.MeshFaceMaterial(materials); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment