浏览代码

Editor: Clean up

Mugen87 6 年之前
父节点
当前提交
8a8661045a

+ 6 - 6
editor/examples/arkanoid.app.json

@@ -39,7 +39,7 @@
 		"geometries": [
 		"geometries": [
 			{
 			{
 				"uuid": "BBEE74D1-E43D-4C32-A9F3-4656E78C26F3",
 				"uuid": "BBEE74D1-E43D-4C32-A9F3-4656E78C26F3",
-				"type": "PlaneGeometry",
+				"type": "PlaneBufferGeometry",
 				"width": 30,
 				"width": 30,
 				"height": 40,
 				"height": 40,
 				"widthSegments": 1,
 				"widthSegments": 1,
@@ -47,7 +47,7 @@
 			},
 			},
 			{
 			{
 				"uuid": "C1722F5F-89AD-45D8-B78C-D1D34AF2A012",
 				"uuid": "C1722F5F-89AD-45D8-B78C-D1D34AF2A012",
-				"type": "BoxGeometry",
+				"type": "BoxBufferGeometry",
 				"width": 2,
 				"width": 2,
 				"height": 1,
 				"height": 1,
 				"depth": 1,
 				"depth": 1,
@@ -57,7 +57,7 @@
 			},
 			},
 			{
 			{
 				"uuid": "327EFFCF-649C-4EF3-86D4-B422C5A86E89",
 				"uuid": "327EFFCF-649C-4EF3-86D4-B422C5A86E89",
-				"type": "CylinderGeometry",
+				"type": "CylinderBufferGeometry",
 				"radiusTop": 0.5,
 				"radiusTop": 0.5,
 				"radiusBottom": 0.5,
 				"radiusBottom": 0.5,
 				"height": 2,
 				"height": 2,
@@ -67,7 +67,7 @@
 			},
 			},
 			{
 			{
 				"uuid": "0791211B-BB02-4E57-82B5-64C05DE92B39",
 				"uuid": "0791211B-BB02-4E57-82B5-64C05DE92B39",
-				"type": "SphereGeometry",
+				"type": "SphereBufferGeometry",
 				"radius": 0.5,
 				"radius": 0.5,
 				"widthSegments": 32,
 				"widthSegments": 32,
 				"heightSegments": 16,
 				"heightSegments": 16,
@@ -78,7 +78,7 @@
 			},
 			},
 			{
 			{
 				"uuid": "73F12A47-9EA7-47FD-BCF3-89B8219B2626",
 				"uuid": "73F12A47-9EA7-47FD-BCF3-89B8219B2626",
-				"type": "BoxGeometry",
+				"type": "BoxBufferGeometry",
 				"width": 2,
 				"width": 2,
 				"height": 1,
 				"height": 1,
 				"depth": 1,
 				"depth": 1,
@@ -88,7 +88,7 @@
 			},
 			},
 			{
 			{
 				"uuid": "3BDEB9FB-BDD4-44AD-8A47-008BED1C8982",
 				"uuid": "3BDEB9FB-BDD4-44AD-8A47-008BED1C8982",
-				"type": "CylinderGeometry",
+				"type": "CylinderBufferGeometry",
 				"radiusTop": 0.5,
 				"radiusTop": 0.5,
 				"radiusBottom": 0.5,
 				"radiusBottom": 0.5,
 				"height": 2,
 				"height": 2,

+ 4 - 4
editor/examples/camera.app.json

@@ -39,7 +39,7 @@
 		"geometries": [
 		"geometries": [
 			{
 			{
 				"uuid": "6D90C4BE-EBA6-4E21-8F54-7CFDAA61F30B",
 				"uuid": "6D90C4BE-EBA6-4E21-8F54-7CFDAA61F30B",
-				"type": "PlaneGeometry",
+				"type": "PlaneBufferGeometry",
 				"width": 10,
 				"width": 10,
 				"height": 10,
 				"height": 10,
 				"widthSegments": 1,
 				"widthSegments": 1,
@@ -47,7 +47,7 @@
 			},
 			},
 			{
 			{
 				"uuid": "D3008B2A-ACDD-43CC-87F7-4F942607D21A",
 				"uuid": "D3008B2A-ACDD-43CC-87F7-4F942607D21A",
-				"type": "BoxGeometry",
+				"type": "BoxBufferGeometry",
 				"width": 1,
 				"width": 1,
 				"height": 1,
 				"height": 1,
 				"depth": 1,
 				"depth": 1,
@@ -57,7 +57,7 @@
 			},
 			},
 			{
 			{
 				"uuid": "F482ACD4-013A-49CF-AE0F-C9FF4ADAE409",
 				"uuid": "F482ACD4-013A-49CF-AE0F-C9FF4ADAE409",
-				"type": "CylinderGeometry",
+				"type": "CylinderBufferGeometry",
 				"radiusTop": 0,
 				"radiusTop": 0,
 				"radiusBottom": 0.4,
 				"radiusBottom": 0.4,
 				"height": 0.75,
 				"height": 0.75,
@@ -67,7 +67,7 @@
 			},
 			},
 			{
 			{
 				"uuid": "51CDDCED-BC71-4B1B-A485-725B6A48204B",
 				"uuid": "51CDDCED-BC71-4B1B-A485-725B6A48204B",
-				"type": "IcosahedronGeometry",
+				"type": "IcosahedronBufferGeometry",
 				"radius": 0.4,
 				"radius": 0.4,
 				"detail": 2
 				"detail": 2
 			}],
 			}],

+ 1 - 1
editor/examples/particles.app.json

@@ -39,7 +39,7 @@
 		"geometries": [
 		"geometries": [
 			{
 			{
 				"uuid": "C3C0CE7D-10B8-43FC-8F74-011CC6E57800",
 				"uuid": "C3C0CE7D-10B8-43FC-8F74-011CC6E57800",
-				"type": "PlaneGeometry",
+				"type": "PlaneBufferGeometry",
 				"width": 100,
 				"width": 100,
 				"height": 100,
 				"height": 100,
 				"widthSegments": 1,
 				"widthSegments": 1,

+ 4 - 4
editor/examples/pong.app.json

@@ -39,7 +39,7 @@
 		"geometries": [
 		"geometries": [
 			{
 			{
 				"uuid": "490CEBA3-6A25-4BE1-B517-C5FB11A5D18A",
 				"uuid": "490CEBA3-6A25-4BE1-B517-C5FB11A5D18A",
-				"type": "PlaneGeometry",
+				"type": "PlaneBufferGeometry",
 				"width": 6,
 				"width": 6,
 				"height": 4,
 				"height": 4,
 				"widthSegments": 1,
 				"widthSegments": 1,
@@ -47,7 +47,7 @@
 			},
 			},
 			{
 			{
 				"uuid": "D9A92F2D-2F08-4851-99C7-12D8D1CA13C7",
 				"uuid": "D9A92F2D-2F08-4851-99C7-12D8D1CA13C7",
-				"type": "BoxGeometry",
+				"type": "BoxBufferGeometry",
 				"width": 0.1,
 				"width": 0.1,
 				"height": 0.1,
 				"height": 0.1,
 				"depth": 0.1,
 				"depth": 0.1,
@@ -57,7 +57,7 @@
 			},
 			},
 			{
 			{
 				"uuid": "5E63B8CF-E225-4ABC-994A-4D06BD4E21EB",
 				"uuid": "5E63B8CF-E225-4ABC-994A-4D06BD4E21EB",
-				"type": "BoxGeometry",
+				"type": "BoxBufferGeometry",
 				"width": 0.2,
 				"width": 0.2,
 				"height": 0.2,
 				"height": 0.2,
 				"depth": 1,
 				"depth": 1,
@@ -67,7 +67,7 @@
 			},
 			},
 			{
 			{
 				"uuid": "D61532B4-24C3-4BC4-B56B-7245E8163E09",
 				"uuid": "D61532B4-24C3-4BC4-B56B-7245E8163E09",
-				"type": "BoxGeometry",
+				"type": "BoxBufferGeometry",
 				"width": 0.2,
 				"width": 0.2,
 				"height": 0.2,
 				"height": 0.2,
 				"depth": 1,
 				"depth": 1,

+ 1 - 1
editor/examples/shaders.app.json

@@ -39,7 +39,7 @@
 		"geometries": [
 		"geometries": [
 			{
 			{
 				"uuid": "EA781333-F3AE-470D-9110-A9724FCB42AA",
 				"uuid": "EA781333-F3AE-470D-9110-A9724FCB42AA",
-				"type": "IcosahedronGeometry",
+				"type": "IcosahedronBufferGeometry",
 				"radius": 1,
 				"radius": 1,
 				"detail": 4
 				"detail": 4
 			}],
 			}],

+ 1 - 1
editor/js/Menubar.Add.js

@@ -125,7 +125,7 @@ Menubar.Add = function ( editor ) {
 	option.setTextContent( strings.getKey( 'menubar/add/icosahedron' )  );
 	option.setTextContent( strings.getKey( 'menubar/add/icosahedron' )  );
 	option.onClick( function () {
 	option.onClick( function () {
 
 
-		var geometry = new THREE.IcosahedronGeometry( 1, 0 );
+		var geometry = new THREE.IcosahedronBufferGeometry( 1, 0 );
 		var mesh = new THREE.Mesh( geometry, new THREE.MeshStandardMaterial() );
 		var mesh = new THREE.Mesh( geometry, new THREE.MeshStandardMaterial() );
 		mesh.name = 'Icosahedron';
 		mesh.name = 'Icosahedron';