Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Examples: Restore old look of ico-spheres. #20420

Merged
merged 1 commit into from
Sep 27, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion examples/jsm/offscreen/scene.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ function init( canvas, width, height, pixelRatio, path ) {

var texture = new THREE.CanvasTexture( imageBitmap );

var geometry = new THREE.IcosahedronBufferGeometry( 5, 3 );
var geometry = new THREE.IcosahedronBufferGeometry( 5, 8 );
var materials = [
new THREE.MeshMatcapMaterial( { color: 0xaa24df, matcap: texture } ),
new THREE.MeshMatcapMaterial( { color: 0x605d90, matcap: texture } ),
Expand Down
2 changes: 1 addition & 1 deletion examples/physics_ammo_instancing.html
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@

// Spheres

var geometry = new THREE.IcosahedronBufferGeometry( 0.075, 2 );
var geometry = new THREE.IcosahedronBufferGeometry( 0.075, 3 );
spheres = new THREE.InstancedMesh( geometry, material, 100 );
spheres.castShadow = true;
spheres.receiveShadow = true;
Expand Down
2 changes: 1 addition & 1 deletion examples/webgl_instancing_raycast.html
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
light.position.set( - 1, - 1.5, - 1 );
scene.add( light );

var geometry = new THREE.IcosahedronGeometry( 0.5, 2 );
var geometry = new THREE.IcosahedronGeometry( 0.5, 3 );
var material = new THREE.MeshPhongMaterial();

mesh = new THREE.InstancedMesh( geometry, material, count );
Expand Down
2 changes: 1 addition & 1 deletion examples/webgl_loader_pdb.html
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@
var json = pdb.json;

var boxGeometry = new THREE.BoxBufferGeometry( 1, 1, 1 );
var sphereGeometry = new THREE.IcosahedronBufferGeometry( 1, 2 );
var sphereGeometry = new THREE.IcosahedronBufferGeometry( 1, 3 );

geometryAtoms.computeBoundingBox();
geometryAtoms.boundingBox.getCenter( offset ).negate();
Expand Down
2 changes: 1 addition & 1 deletion examples/webgl_materials_cubemap_dynamic.html
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@
reflectivity: 1
} );

sphere = new THREE.Mesh( new THREE.IcosahedronBufferGeometry( 20, 3 ), material );
sphere = new THREE.Mesh( new THREE.IcosahedronBufferGeometry( 20, 8 ), material );
scene.add( sphere );

cube = new THREE.Mesh( new THREE.BoxBufferGeometry( 20, 20, 20 ), material );
Expand Down
2 changes: 1 addition & 1 deletion examples/webgl_materials_envmaps.html
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@

//

var geometry = new THREE.IcosahedronBufferGeometry( 400, 4 );
var geometry = new THREE.IcosahedronBufferGeometry( 400, 15 );
sphereMaterial = new THREE.MeshLambertMaterial( { envMap: textureCube } );
sphereMesh = new THREE.Mesh( geometry, sphereMaterial );
scene.add( sphereMesh );
Expand Down
2 changes: 1 addition & 1 deletion examples/webgl_multiple_scenes_comparison.html
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@

function initMeshes() {

var geometry = new THREE.IcosahedronBufferGeometry( 1, 2 );
var geometry = new THREE.IcosahedronBufferGeometry( 1, 3 );

var mesh = new THREE.Mesh( geometry, new THREE.MeshStandardMaterial() );
sceneL.add( mesh );
Expand Down
2 changes: 1 addition & 1 deletion examples/webgl_postprocessing_unreal_bloom_selective.html
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@
scene.traverse( disposeMaterial );
scene.children.length = 0;

var geometry = new THREE.IcosahedronBufferGeometry( 1, 4 );
var geometry = new THREE.IcosahedronBufferGeometry( 1, 15 );

for ( var i = 0; i < 50; i ++ ) {

Expand Down
2 changes: 1 addition & 1 deletion examples/webxr_vr_ballshooter.html
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@
light.position.set( 1, 1, 1 ).normalize();
scene.add( light );

var geometry = new THREE.IcosahedronBufferGeometry( radius, 2 );
var geometry = new THREE.IcosahedronBufferGeometry( radius, 3 );

for ( var i = 0; i < 200; i ++ ) {

Expand Down
2 changes: 1 addition & 1 deletion examples/webxr_vr_dragging.html
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@
new THREE.BoxBufferGeometry( 0.2, 0.2, 0.2 ),
new THREE.ConeBufferGeometry( 0.2, 0.2, 64 ),
new THREE.CylinderBufferGeometry( 0.2, 0.2, 0.2, 64 ),
new THREE.IcosahedronBufferGeometry( 0.2, 3 ),
new THREE.IcosahedronBufferGeometry( 0.2, 8 ),
new THREE.TorusBufferGeometry( 0.2, 0.04, 64, 32 )
];

Expand Down
2 changes: 1 addition & 1 deletion examples/webxr_vr_paint.html
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@
var material = new THREE.MeshStandardMaterial( { flatShading: true } );
var mesh = new THREE.Mesh( geometry, material );

var pivot = new THREE.Mesh( new THREE.IcosahedronBufferGeometry( 0.01, 2 ) );
var pivot = new THREE.Mesh( new THREE.IcosahedronBufferGeometry( 0.01, 3 ) );
pivot.name = 'pivot';
pivot.position.z = - 0.05;
mesh.add( pivot );
Expand Down
2 changes: 1 addition & 1 deletion examples/webxr_vr_sculpt.html
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@
var material = new THREE.MeshStandardMaterial( { flatShading: true } );
var mesh = new THREE.Mesh( geometry, material );

var pivot = new THREE.Mesh( new THREE.IcosahedronBufferGeometry( 0.01, 2 ) );
var pivot = new THREE.Mesh( new THREE.IcosahedronBufferGeometry( 0.01, 3 ) );
pivot.name = 'pivot';
pivot.position.z = - 0.05;
mesh.add( pivot );
Expand Down