Ver Fonte

Using TextBufferGeometry in relevant examples.

Mr.doob há 8 anos atrás
pai
commit
8006e6e99b

+ 1 - 1
examples/webgl_geometry_text_earcut.html

@@ -421,7 +421,7 @@
 
 			function createText() {
 
-				textGeo = new THREE.TextGeometry( text, {
+				textGeo = new THREE.TextBufferGeometry( text, {
 
 					font: font,
 

+ 1 - 1
examples/webgl_geometry_text_pnltri.html

@@ -393,7 +393,7 @@
 
 			function createText() {
 
-				textGeo = new THREE.TextGeometry( text, {
+				textGeo = new THREE.TextBufferGeometry( text, {
 
 					font: font,
 

+ 1 - 1
examples/webgl_loader_ttf.html

@@ -268,7 +268,7 @@
 
 			function createText() {
 
-				textGeo = new THREE.TextGeometry( text, {
+				textGeo = new THREE.TextBufferGeometry( text, {
 
 					font: font,
 

+ 1 - 1
examples/webgl_materials_variations_basic.html

@@ -119,7 +119,7 @@
 
 				function addLabel( name, location ) {
 
-					var textGeo = new THREE.TextGeometry( name, {
+					var textGeo = new THREE.TextBufferGeometry( name, {
 
 						font: font,
 

+ 1 - 1
examples/webgl_materials_variations_lambert.html

@@ -118,7 +118,7 @@
 
 				function addLabel( name, location ) {
 
-					var textGeo = new THREE.TextGeometry( name, {
+					var textGeo = new THREE.TextBufferGeometry( name, {
 
 						font: font,
 

+ 1 - 1
examples/webgl_materials_variations_phong.html

@@ -128,7 +128,7 @@
 
 				function addLabel( name, location ) {
 
-					var textGeo = new THREE.TextGeometry( name, {
+					var textGeo = new THREE.TextBufferGeometry( name, {
 
 						font: font,
 

+ 1 - 1
examples/webgl_materials_variations_physical.html

@@ -147,7 +147,7 @@
 
 				function addLabel( name, location ) {
 
-					var textGeo = new THREE.TextGeometry( name, {
+					var textGeo = new THREE.TextBufferGeometry( name, {
 
 						font: font,
 

+ 1 - 1
examples/webgl_materials_variations_standard.html

@@ -155,7 +155,7 @@
 
 				function addLabel( name, location ) {
 
-					var textGeo = new THREE.TextGeometry( name, {
+					var textGeo = new THREE.TextBufferGeometry( name, {
 
 						font: font,
 

+ 1 - 1
examples/webgl_materials_variations_toon.html

@@ -130,7 +130,7 @@
 
 				function addLabel( name, location ) {
 
-					var textGeo = new THREE.TextGeometry( name, {
+					var textGeo = new THREE.TextBufferGeometry( name, {
 
 						font: font,
 

+ 1 - 1
examples/webgl_shadowmap.html

@@ -209,7 +209,7 @@
 				var loader = new THREE.FontLoader();
 				loader.load( 'fonts/helvetiker_bold.typeface.json', function ( font ) {
 
-					var textGeo = new THREE.TextGeometry( "THREE.JS", {
+					var textGeo = new THREE.TextBufferGeometry( "THREE.JS", {
 
 						font: font,
 

+ 1 - 1
examples/webgl_shadowmap_performance.html

@@ -180,7 +180,7 @@
 				var loader = new THREE.FontLoader();
 				loader.load( 'fonts/helvetiker_bold.typeface.json', function ( font ) {
 
-					var textGeo = new THREE.TextGeometry( "THREE.JS", {
+					var textGeo = new THREE.TextBufferGeometry( "THREE.JS", {
 
 						font: font,