From 6126da9809078b4eb04bce45de3b5a2c0e37aad4 Mon Sep 17 00:00:00 2001 From: "Mr.doob" Date: Thu, 30 Jan 2020 10:56:34 -0800 Subject: [PATCH] Examples: Moved webgl_instancing_modified to advanced. --- examples/files.js | 2 +- examples/webgl_instancing_modified.html | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/examples/files.js b/examples/files.js index 32dcda0e29..a7baa7ed4e 100644 --- a/examples/files.js +++ b/examples/files.js @@ -48,7 +48,6 @@ var files = { "webgl_geometry_text_stroke", "webgl_helpers", "webgl_instancing_dynamic", - "webgl_instancing_modified", "webgl_instancing_performance", "webgl_instancing_raycast", "webgl_instancing_scatter", @@ -298,6 +297,7 @@ var files = { "webgl_gpgpu_birds", "webgl_gpgpu_water", "webgl_gpgpu_protoplanet", + "webgl_instancing_modified", "webgl_lightningstrike", "webgl_lightshafts", "webgl_materials_modified", diff --git a/examples/webgl_instancing_modified.html b/examples/webgl_instancing_modified.html index 6326452d84..44875600e4 100644 --- a/examples/webgl_instancing_modified.html +++ b/examples/webgl_instancing_modified.html @@ -50,9 +50,9 @@ for ( var i = 0; i < count; i ++ ) { - instanceColors.push( 0.5 + 0.5 * Math.random() ); - instanceColors.push( 0.5 + 0.5 * Math.random() ); - instanceColors.push( 0.5 + 0.5 * Math.random() ); + instanceColors.push( Math.random() ); + instanceColors.push( Math.random() ); + instanceColors.push( Math.random() ); } @@ -168,7 +168,7 @@ for ( var z = 0; z < amount; z ++ ) { - dummy.position.set( offset - x, offset - y, offset - z ).multiplyScalar( 2 ); + dummy.position.set( offset - x, offset - y, offset - z ); dummy.rotation.y = ( Math.sin( x / 4 + time ) + Math.sin( y / 4 + time ) + Math.sin( z / 4 + time ) ); dummy.rotation.z = dummy.rotation.y * 2; -- GitLab