提交 f3e18523 编写于 作者: M Mr.doob

Fixed canvas_geometry_terrain on Firefox (thx @sylarpowa!)

上级 89dc5b1b
......@@ -103,7 +103,7 @@
function generateHeight( width, height ) {
var data = Float32Array ? new Float32Array() : [], perlin = new ImprovedNoise(),
var data = Float32Array ? new Float32Array( width * height ) : [], perlin = new ImprovedNoise(),
size = width * height, quality = 2, z = Math.random() * 100;
for ( var i = 0; i < size; i ++ ) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册