浏览代码

Fixed webgl_interactive_cubes_gpu example. Fixes #3707.

Mr.doob 12 年之前
父节点
当前提交
2d99251314
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      examples/webgl_interactive_cubes_gpu.html

+ 1 - 1
examples/webgl_interactive_cubes_gpu.html

@@ -112,7 +112,7 @@
 					position.y = Math.random() * 6000 - 3000;
 					position.y = Math.random() * 6000 - 3000;
 					position.z = Math.random() * 8000 - 4000;
 					position.z = Math.random() * 8000 - 4000;
 
 
-					var rotation = new THREE.Vector3();
+					var rotation = new THREE.Euler();
 
 
 					rotation.x = Math.random() * 2 * Math.PI;
 					rotation.x = Math.random() * 2 * Math.PI;
 					rotation.y = Math.random() * 2 * Math.PI;
 					rotation.y = Math.random() * 2 * Math.PI;