浏览代码

Examples: More clean up.

Mugen87 4 年之前
父节点
当前提交
0d03c11524
共有 1 个文件被更改,包括 1 次插入3 次删除
  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 );