Skip to content

Instantly share code, notes, and snippets.

@naoyashiga
Created October 10, 2013 14:12
Show Gist options
  • Save naoyashiga/6919044 to your computer and use it in GitHub Desktop.
Save naoyashiga/6919044 to your computer and use it in GitHub Desktop.
Cubeの各面に異なるマテリアルを使うときはTHREE.jsのバージョンに注意! ref: http://qiita.com/naoyashiga/items/269a9bc3658956afc379
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