Browse Source

Examples: More clean up.

Mugen87 4 years ago
parent
commit
0d03c11524
1 changed files with 1 additions and 3 deletions
  1. 1 3
      examples/webgl_modifier_tessellation.html

+ 1 - 3
examples/webgl_modifier_tessellation.html

@@ -89,7 +89,7 @@
 
 				//
 
-				let geometry = new THREE.TextGeometry( "THREE.JS", {
+				let geometry = new THREE.TextBufferGeometry( 'THREE.JS', {
 
 					font: font,
 
@@ -111,8 +111,6 @@
 
 				//
 
-				geometry = new THREE.BufferGeometry().fromGeometry( geometry );
-
 				const numFaces = geometry.attributes.position.count / 3;
 
 				const colors = new Float32Array( numFaces * 3 * 3 );