Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit d936e24

Browse files
committedJan 10, 2021
Exampels: Refactor usage of geometry generators.
1 parent fbeb3de commit d936e24

File tree

314 files changed

+747
-751
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

314 files changed

+747
-751
lines changed
 

‎examples/css2d_label.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@
5353

5454
//
5555

56-
const earthGeometry = new THREE.SphereBufferGeometry( EARTH_RADIUS, 16, 16 );
56+
const earthGeometry = new THREE.SphereGeometry( EARTH_RADIUS, 16, 16 );
5757
const earthMaterial = new THREE.MeshPhongMaterial( {
5858
specular: 0x333333,
5959
shininess: 5,
@@ -65,7 +65,7 @@
6565
const earth = new THREE.Mesh( earthGeometry, earthMaterial );
6666
scene.add( earth );
6767

68-
const moonGeometry = new THREE.SphereBufferGeometry( MOON_RADIUS, 16, 16 );
68+
const moonGeometry = new THREE.SphereGeometry( MOON_RADIUS, 16, 16 );
6969
const moonMaterial = new THREE.MeshPhongMaterial( {
7070
shininess: 5,
7171
map: textureLoader.load( 'textures/planets/moon_1024.jpg' )

‎examples/css3d_orthographic.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@
109109
object.rotation.copy( rot );
110110
scene2.add( object );
111111

112-
const geometry = new THREE.PlaneBufferGeometry( width, height );
112+
const geometry = new THREE.PlaneGeometry( width, height );
113113
const mesh = new THREE.Mesh( geometry, material );
114114
mesh.position.copy( object.position );
115115
mesh.rotation.copy( object.rotation );

0 commit comments

Comments
 (0)
Please sign in to comment.