mirror of
https://github.com/wahyd4/three.js.git
synced 2026-08-09 04:56:01 +10:00
Updated example in README.md (Cube -> CubeGeometry). Thx @adammw!
This commit is contained in:
@@ -99,7 +99,7 @@ This code creates a camera, then creates a scene, adds a cube on it, creates a &
|
||||
|
||||
scene = new THREE.Scene();
|
||||
|
||||
geometry = new THREE.Cube( 200, 200, 200 );
|
||||
geometry = new THREE.CubeGeometry( 200, 200, 200 );
|
||||
material = new THREE.MeshBasicMaterial( { color: 0xff0000, wireframe: true } );
|
||||
|
||||
mesh = new THREE.Mesh( geometry, material );
|
||||
|
||||
Reference in New Issue
Block a user