Browse Source

Examples: Clean up

Mugen87 7 years ago
parent
commit
9898330240

+ 1 - 1
examples/misc_animation_authoring.html

@@ -65,7 +65,7 @@
 
 				var texture = new THREE.TextureLoader().load( 'textures/crate.gif', render );
 				texture.mapping = THREE.UVMapping;
-				texture.anisotropy = renderer.getMaxAnisotropy();
+				texture.anisotropy = renderer.capabilities.getMaxAnisotropy();
 
 				var geometry = new THREE.BoxGeometry( 200, 200, 200 );
 				var material = new THREE.MeshLambertMaterial( { map: texture } );

+ 1 - 1
examples/misc_controls_transform.html

@@ -62,7 +62,7 @@
 
 				var texture = new THREE.TextureLoader().load( 'textures/crate.gif', render );
 				texture.mapping = THREE.UVMapping;
-				texture.anisotropy = renderer.getMaxAnisotropy();
+				texture.anisotropy = renderer.capabilities.getMaxAnisotropy();
 
 				var geometry = new THREE.BoxGeometry( 200, 200, 200 );
 				var material = new THREE.MeshLambertMaterial( { map: texture } );

+ 1 - 1
examples/misc_fps.html

@@ -276,7 +276,7 @@
 			scene.add( makePlatform(
 				'models/platform/platform.json',
 				'models/platform/platform.jpg',
-				renderer.getMaxAnisotropy()
+				renderer.capabilities.getMaxAnisotropy()
 			));
 
 

+ 1 - 1
examples/webgl_buffergeometry_instancing_interleaved_dynamic.html

@@ -214,7 +214,7 @@
 
 		// material
 		var texture = new THREE.TextureLoader().load( 'textures/crate.gif' );
-		texture.anisotropy = renderer.getMaxAnisotropy();
+		texture.anisotropy = renderer.capabilities.getMaxAnisotropy();
 
 		var material = new THREE.RawShaderMaterial( {
 

+ 1 - 1
examples/webgl_materials_texture_anisotropy.html

@@ -108,7 +108,7 @@
 
 				var textureLoader = new THREE.TextureLoader();
 
-				var maxAnisotropy = renderer.getMaxAnisotropy();
+				var maxAnisotropy = renderer.capabilities.getMaxAnisotropy();
 
 				var texture1 = textureLoader.load( "textures/crate.gif" );
 				var material1 = new THREE.MeshPhongMaterial( { color: 0xffffff, map: texture1 } );