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: Clean up #24349

Merged
merged 1 commit into from
Jul 15, 2022
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/geometries/ConvexGeometry.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ class ConvexGeometry extends BufferGeometry {

if ( ConvexHull === undefined ) {

console.error( 'THREE.ConvexBufferGeometry: ConvexBufferGeometry relies on ConvexHull' );
console.error( 'THREE.ConvexGeometry: ConvexGeometry relies on ConvexHull' );

}

Expand Down
2 changes: 1 addition & 1 deletion examples/webgl_raycaster_bvh.html
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@
} ) );

sphereInstance = new THREE.InstancedMesh(
new THREE.SphereBufferGeometry(),
new THREE.SphereGeometry(),
new THREE.MeshBasicMaterial( { color: RAY_COLOR } ),
2 * MAX_RAYS
);
Expand Down
2 changes: 1 addition & 1 deletion examples/webxr_ar_lighting.html
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@

//

const ballGeometry = new THREE.SphereBufferGeometry( 0.175, 32, 32 );
const ballGeometry = new THREE.SphereGeometry( 0.175, 32, 32 );
const ballGroup = new THREE.Group();
ballGroup.position.z = - 2;

Expand Down
2 changes: 1 addition & 1 deletion manual/zh/optimize-lots-of-objects.html
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ <h1>大量对象的优化</h1>
<pre class="prettyprint showlinemods notranslate lang-js" translate="no">{
const loader = new THREE.TextureLoader();
const texture = loader.load('resources/images/world.jpg', render);
const geometry = new THREE.SphereBufferGeometry(1, 64, 32);
const geometry = new THREE.SphereGeometry(1, 64, 32);
const material = new THREE.MeshBasicMaterial({map: texture});
scene.add(new THREE.Mesh(geometry, material));
}
Expand Down