Skip to content

Commit

Permalink
Examples: Improved GridHelper in black backgrounds.
Browse files Browse the repository at this point in the history
  • Loading branch information
mrdoob committed Sep 1, 2020
1 parent b478609 commit c39ede5
Show file tree
Hide file tree
Showing 13 changed files with 6 additions and 8 deletions.
2 changes: 1 addition & 1 deletion examples/misc_animation_authoring.html
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
camera.lookAt( 0, 200, 0 );

scene = new THREE.Scene();
scene.add( new THREE.GridHelper( 1000, 10 ) );
scene.add( new THREE.GridHelper( 1000, 10, 0x888888, 0x444444 ) );

var light = new THREE.DirectionalLight( 0xffffff, 2 );
light.position.set( 1, 1, 1 );
Expand Down
2 changes: 1 addition & 1 deletion examples/misc_controls_transform.html
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
currentCamera.lookAt( 0, 200, 0 );

scene = new THREE.Scene();
scene.add( new THREE.GridHelper( 1000, 10 ) );
scene.add( new THREE.GridHelper( 1000, 10, 0x888888, 0x444444 ) );

var light = new THREE.DirectionalLight( 0xffffff, 2 );
light.position.set( 1, 1, 1 );
Expand Down
2 changes: 1 addition & 1 deletion examples/misc_exporter_gltf.html
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@
// ---------------------------------------------------------------------
// Grid
// ---------------------------------------------------------------------
gridHelper = new THREE.GridHelper( 2000, 20 );
gridHelper = new THREE.GridHelper( 2000, 20, 0x888888, 0x444444 );
gridHelper.position.y = - 50;
gridHelper.name = "Grid";
scene1.add( gridHelper );
Expand Down
Binary file modified examples/screenshots/misc_animation_authoring.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified examples/screenshots/misc_controls_transform.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified examples/screenshots/misc_exporter_gltf.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified examples/screenshots/webgl_loader_collada_kinematics.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified examples/screenshots/webgl_loader_collada_skinning.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified examples/screenshots/webgl_loader_imagebitmap.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion examples/webgl_loader_collada_kinematics.html
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@

// Grid

var grid = new THREE.GridHelper( 20, 20 );
var grid = new THREE.GridHelper( 20, 20, 0x888888, 0x444444 );
scene.add( grid );

// Add the COLLADA
Expand Down
2 changes: 1 addition & 1 deletion examples/webgl_loader_collada_skinning.html
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@

//

var gridHelper = new THREE.GridHelper( 10, 20 );
var gridHelper = new THREE.GridHelper( 10, 20, 0x888888, 0x444444 );
scene.add( gridHelper );

//
Expand Down
2 changes: 1 addition & 1 deletion examples/webgl_loader_imagebitmap.html
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@
group = new THREE.Group();
scene.add( group );

group.add( new THREE.GridHelper( 4, 12 ) );
group.add( new THREE.GridHelper( 4, 12, 0x888888, 0x444444 ) );

cubes = new THREE.Group();
group.add( cubes );
Expand Down
2 changes: 0 additions & 2 deletions examples/webgl_multiple_scenes_comparison.html
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,5 @@
}

</script>

</body>

</html>

0 comments on commit c39ede5

Please sign in to comment.