Răsfoiți Sursa

Examples: Remove unnecessary texture parameters.

Mugen87 5 ani în urmă
părinte
comite
d276dba3e8

+ 0 - 1
examples/webaudio_orientation.html

@@ -52,7 +52,6 @@
 			var reflectionCube = new THREE.CubeTextureLoader()
 			var reflectionCube = new THREE.CubeTextureLoader()
 				.setPath( 'textures/cube/SwedishRoyalCastle/' )
 				.setPath( 'textures/cube/SwedishRoyalCastle/' )
 				.load( [ 'px.jpg', 'nx.jpg', 'py.jpg', 'ny.jpg', 'pz.jpg', 'nz.jpg' ] );
 				.load( [ 'px.jpg', 'nx.jpg', 'py.jpg', 'ny.jpg', 'pz.jpg', 'nz.jpg' ] );
-			reflectionCube.format = THREE.RGBFormat;
 
 
 			scene = new THREE.Scene();
 			scene = new THREE.Scene();
 			scene.background = new THREE.Color( 0xa0a0a0 );
 			scene.background = new THREE.Color( 0xa0a0a0 );

+ 0 - 1
examples/webgl_lightningstrike.html

@@ -415,7 +415,6 @@
 							 r + "posz.jpg", r + "negz.jpg" ];
 							 r + "posz.jpg", r + "negz.jpg" ];
 
 
 				var textureCube = new THREE.CubeTextureLoader().load( urls );
 				var textureCube = new THREE.CubeTextureLoader().load( urls );
-				textureCube.format = THREE.RGBFormat;
 				textureCube.mapping = THREE.CubeReflectionMapping;
 				textureCube.mapping = THREE.CubeReflectionMapping;
 				textureCube.encoding = THREE.sRGBEncoding;
 				textureCube.encoding = THREE.sRGBEncoding;
 
 

+ 0 - 1
examples/webgl_lights_pointlights2.html

@@ -54,7 +54,6 @@
 				var texture = textureLoader.load( "textures/disturb.jpg" );
 				var texture = textureLoader.load( "textures/disturb.jpg" );
 				texture.repeat.set( 20, 10 );
 				texture.repeat.set( 20, 10 );
 				texture.wrapS = texture.wrapT = THREE.RepeatWrapping;
 				texture.wrapS = texture.wrapT = THREE.RepeatWrapping;
-				texture.format = THREE.RGBFormat;
 				texture.encoding = THREE.sRGBEncoding;
 				texture.encoding = THREE.sRGBEncoding;
 
 
 				// MATERIALS
 				// MATERIALS

+ 0 - 1
examples/webgl_loader_ldraw.html

@@ -198,7 +198,6 @@
 									r + "posy.jpg", r + "negy.jpg",
 									r + "posy.jpg", r + "negy.jpg",
 									r + "posz.jpg", r + "negz.jpg" ];
 									r + "posz.jpg", r + "negz.jpg" ];
 								textureCube = new THREE.CubeTextureLoader().load( urls );
 								textureCube = new THREE.CubeTextureLoader().load( urls );
-								textureCube.format = THREE.RGBFormat;
 								textureCube.mapping = THREE.CubeReflectionMapping;
 								textureCube.mapping = THREE.CubeReflectionMapping;
 
 
 							}
 							}

+ 0 - 3
examples/webgl_materials_cubemap.html

@@ -50,11 +50,8 @@
 				];
 				];
 
 
 				var reflectionCube = new THREE.CubeTextureLoader().load( urls );
 				var reflectionCube = new THREE.CubeTextureLoader().load( urls );
-				reflectionCube.format = THREE.RGBFormat;
-
 				var refractionCube = new THREE.CubeTextureLoader().load( urls );
 				var refractionCube = new THREE.CubeTextureLoader().load( urls );
 				refractionCube.mapping = THREE.CubeRefractionMapping;
 				refractionCube.mapping = THREE.CubeRefractionMapping;
-				refractionCube.format = THREE.RGBFormat;
 
 
 				scene = new THREE.Scene();
 				scene = new THREE.Scene();
 				scene.background = reflectionCube;
 				scene.background = reflectionCube;

+ 0 - 4
examples/webgl_materials_envmaps.html

@@ -56,16 +56,12 @@
 							 r + "posz.jpg", r + "negz.jpg" ];
 							 r + "posz.jpg", r + "negz.jpg" ];
 
 
 				textureCube = new THREE.CubeTextureLoader().load( urls );
 				textureCube = new THREE.CubeTextureLoader().load( urls );
-				textureCube.format = THREE.RGBFormat;
-				textureCube.mapping = THREE.CubeReflectionMapping;
 				textureCube.encoding = THREE.sRGBEncoding;
 				textureCube.encoding = THREE.sRGBEncoding;
 
 
 				var textureLoader = new THREE.TextureLoader();
 				var textureLoader = new THREE.TextureLoader();
 
 
 				textureEquirec = textureLoader.load( "textures/2294472375_24a3b8ef46_o.jpg" );
 				textureEquirec = textureLoader.load( "textures/2294472375_24a3b8ef46_o.jpg" );
 				textureEquirec.mapping = THREE.EquirectangularReflectionMapping;
 				textureEquirec.mapping = THREE.EquirectangularReflectionMapping;
-				textureEquirec.magFilter = THREE.LinearFilter;
-				textureEquirec.minFilter = THREE.LinearMipmapLinearFilter;
 				textureEquirec.encoding = THREE.sRGBEncoding;
 				textureEquirec.encoding = THREE.sRGBEncoding;
 
 
 				textureSphere = textureLoader.load( "textures/metal.jpg" );
 				textureSphere = textureLoader.load( "textures/metal.jpg" );

+ 0 - 1
examples/webgl_materials_nodes.html

@@ -103,7 +103,6 @@
 				];
 				];
 
 
 				var textureCube = new THREE.CubeTextureLoader().load( urls, updatePREM );
 				var textureCube = new THREE.CubeTextureLoader().load( urls, updatePREM );
-				textureCube.format = THREE.RGBFormat;
 
 
 				library[ textureCube.uuid ] = textureCube;
 				library[ textureCube.uuid ] = textureCube;
 
 

+ 0 - 1
examples/webgl_materials_shaders_fresnel.html

@@ -54,7 +54,6 @@
 				];
 				];
 
 
 				var textureCube = new THREE.CubeTextureLoader().load( urls );
 				var textureCube = new THREE.CubeTextureLoader().load( urls );
-				textureCube.format = THREE.RGBFormat;
 
 
 				scene = new THREE.Scene();
 				scene = new THREE.Scene();
 				scene.background = textureCube;
 				scene.background = textureCube;

+ 0 - 1
examples/webgl_materials_variations_basic.html

@@ -45,7 +45,6 @@
 				var reflectionCube = new THREE.CubeTextureLoader()
 				var reflectionCube = new THREE.CubeTextureLoader()
 					.setPath( 'textures/cube/SwedishRoyalCastle/' )
 					.setPath( 'textures/cube/SwedishRoyalCastle/' )
 					.load( [ 'px.jpg', 'nx.jpg', 'py.jpg', 'ny.jpg', 'pz.jpg', 'nz.jpg' ] );
 					.load( [ 'px.jpg', 'nx.jpg', 'py.jpg', 'ny.jpg', 'pz.jpg', 'nz.jpg' ] );
-				reflectionCube.format = THREE.RGBFormat;
 				reflectionCube.encoding = THREE.sRGBEncoding;
 				reflectionCube.encoding = THREE.sRGBEncoding;
 
 
 				scene = new THREE.Scene();
 				scene = new THREE.Scene();

+ 0 - 1
examples/webgl_materials_variations_lambert.html

@@ -45,7 +45,6 @@
 				var reflectionCube = new THREE.CubeTextureLoader()
 				var reflectionCube = new THREE.CubeTextureLoader()
 					.setPath( 'textures/cube/SwedishRoyalCastle/' )
 					.setPath( 'textures/cube/SwedishRoyalCastle/' )
 					.load( [ 'px.jpg', 'nx.jpg', 'py.jpg', 'ny.jpg', 'pz.jpg', 'nz.jpg' ] );
 					.load( [ 'px.jpg', 'nx.jpg', 'py.jpg', 'ny.jpg', 'pz.jpg', 'nz.jpg' ] );
-				reflectionCube.format = THREE.RGBFormat;
 				reflectionCube.encoding = THREE.sRGBEncoding;
 				reflectionCube.encoding = THREE.sRGBEncoding;
 
 
 				scene = new THREE.Scene();
 				scene = new THREE.Scene();

+ 0 - 1
examples/webgl_materials_variations_phong.html

@@ -45,7 +45,6 @@
 				var reflectionCube = new THREE.CubeTextureLoader()
 				var reflectionCube = new THREE.CubeTextureLoader()
 					.setPath( 'textures/cube/SwedishRoyalCastle/' )
 					.setPath( 'textures/cube/SwedishRoyalCastle/' )
 					.load( [ 'px.jpg', 'nx.jpg', 'py.jpg', 'ny.jpg', 'pz.jpg', 'nz.jpg' ] );
 					.load( [ 'px.jpg', 'nx.jpg', 'py.jpg', 'ny.jpg', 'pz.jpg', 'nz.jpg' ] );
-				reflectionCube.format = THREE.RGBFormat;
 				reflectionCube.encoding = THREE.sRGBEncoding;
 				reflectionCube.encoding = THREE.sRGBEncoding;
 
 
 				scene = new THREE.Scene();
 				scene = new THREE.Scene();

+ 0 - 1
examples/webgl_panorama_dualfisheye.html

@@ -88,7 +88,6 @@
 
 
 				var texture = new THREE.TextureLoader().load( 'textures/ricoh_theta_s.jpg' );
 				var texture = new THREE.TextureLoader().load( 'textures/ricoh_theta_s.jpg' );
 				texture.minFilter = THREE.LinearFilter;
 				texture.minFilter = THREE.LinearFilter;
-				texture.format = THREE.RGBFormat;
 
 
 				var material = new THREE.MeshBasicMaterial( { map: texture } );
 				var material = new THREE.MeshBasicMaterial( { map: texture } );
 
 

+ 0 - 1
examples/webgl_performance_doublesided.html

@@ -64,7 +64,6 @@
 				];
 				];
 
 
 				var reflectionCube = new THREE.CubeTextureLoader().load( urls );
 				var reflectionCube = new THREE.CubeTextureLoader().load( urls );
-				reflectionCube.format = THREE.RGBFormat;
 				reflectionCube.encoding = THREE.sRGBEncoding;
 				reflectionCube.encoding = THREE.sRGBEncoding;
 
 
 				var material = new THREE.MeshPhongMaterial( { specular: 0x101010, shininess: 100, envMap: reflectionCube, combine: THREE.MixOperation, reflectivity: 0.1, side: THREE.DoubleSide } );
 				var material = new THREE.MeshPhongMaterial( { specular: 0x101010, shininess: 100, envMap: reflectionCube, combine: THREE.MixOperation, reflectivity: 0.1, side: THREE.DoubleSide } );

+ 0 - 1
examples/webgl_postprocessing_dof2.html

@@ -83,7 +83,6 @@
 							 r + 'posz.jpg', r + 'negz.jpg' ];
 							 r + 'posz.jpg', r + 'negz.jpg' ];
 
 
 				var textureCube = new THREE.CubeTextureLoader().load( urls );
 				var textureCube = new THREE.CubeTextureLoader().load( urls );
-				textureCube.format = THREE.RGBFormat;
 
 
 				scene.background = textureCube;
 				scene.background = textureCube;
 
 

+ 0 - 1
examples/webgl_shaders_tonemapping.html

@@ -315,7 +315,6 @@
 							 r + "dark-s_pz.jpg", r + "dark-s_nz.jpg" ];
 							 r + "dark-s_pz.jpg", r + "dark-s_nz.jpg" ];
 
 
 				var textureCube = new THREE.CubeTextureLoader().load( urls );
 				var textureCube = new THREE.CubeTextureLoader().load( urls );
-				textureCube.format = THREE.RGBFormat;
 				textureCube.encoding = THREE.sRGBEncoding;
 				textureCube.encoding = THREE.sRGBEncoding;
 
 
 				sceneCube.background = textureCube;
 				sceneCube.background = textureCube;

+ 0 - 3
examples/webgl_shading_physical.html

@@ -76,19 +76,16 @@
 				textureSquares.repeat.set( 50, 50 );
 				textureSquares.repeat.set( 50, 50 );
 				textureSquares.wrapS = textureSquares.wrapT = THREE.RepeatWrapping;
 				textureSquares.wrapS = textureSquares.wrapT = THREE.RepeatWrapping;
 				textureSquares.magFilter = THREE.NearestFilter;
 				textureSquares.magFilter = THREE.NearestFilter;
-				textureSquares.format = THREE.RGBFormat;
 				textureSquares.encoding = THREE.sRGBEncoding;
 				textureSquares.encoding = THREE.sRGBEncoding;
 
 
 				var textureNoiseColor = textureLoader.load( "textures/disturb.jpg" );
 				var textureNoiseColor = textureLoader.load( "textures/disturb.jpg" );
 				textureNoiseColor.repeat.set( 1, 1 );
 				textureNoiseColor.repeat.set( 1, 1 );
 				textureNoiseColor.wrapS = textureNoiseColor.wrapT = THREE.RepeatWrapping;
 				textureNoiseColor.wrapS = textureNoiseColor.wrapT = THREE.RepeatWrapping;
-				textureNoiseColor.format = THREE.RGBFormat;
 				textureNoiseColor.encoding = THREE.sRGBEncoding;
 				textureNoiseColor.encoding = THREE.sRGBEncoding;
 
 
 				var textureLava = textureLoader.load( "textures/lava/lavatile.jpg" );
 				var textureLava = textureLoader.load( "textures/lava/lavatile.jpg" );
 				textureLava.repeat.set( 6, 2 );
 				textureLava.repeat.set( 6, 2 );
 				textureLava.wrapS = textureLava.wrapT = THREE.RepeatWrapping;
 				textureLava.wrapS = textureLava.wrapT = THREE.RepeatWrapping;
-				textureLava.format = THREE.RGBFormat;
 				textureLava.encoding = THREE.sRGBEncoding;
 				textureLava.encoding = THREE.sRGBEncoding;
 
 
 				// GROUND
 				// GROUND

+ 0 - 2
examples/webxr_vr_panorama_depth.html

@@ -60,7 +60,6 @@
 				loader.load( './textures/kandao3.jpg', function ( texture ) {
 				loader.load( './textures/kandao3.jpg', function ( texture ) {
 
 
 					texture.minFilter = THREE.NearestFilter;
 					texture.minFilter = THREE.NearestFilter;
-					texture.format = THREE.RGBFormat;
 					texture.generateMipmaps = false;
 					texture.generateMipmaps = false;
 					sphere.material.map = texture;
 					sphere.material.map = texture;
 
 
@@ -69,7 +68,6 @@
 				loader.load( './textures/kandao3_depthmap.jpg', function ( depth ) {
 				loader.load( './textures/kandao3_depthmap.jpg', function ( depth ) {
 
 
 					depth.minFilter = THREE.NearestFilter;
 					depth.minFilter = THREE.NearestFilter;
-					depth.format = THREE.RGBFormat;
 					depth.generateMipmaps = false;
 					depth.generateMipmaps = false;
 					sphere.material.displacementMap = depth;
 					sphere.material.displacementMap = depth;
 
 

+ 0 - 1
examples/webxr_vr_sandbox.html

@@ -30,7 +30,6 @@
 				var background = new THREE.CubeTextureLoader()
 				var background = new THREE.CubeTextureLoader()
 					.setPath( 'textures/cube/MilkyWay/' )
 					.setPath( 'textures/cube/MilkyWay/' )
 					.load( [ 'dark-s_px.jpg', 'dark-s_nx.jpg', 'dark-s_py.jpg', 'dark-s_ny.jpg', 'dark-s_pz.jpg', 'dark-s_nz.jpg' ] );
 					.load( [ 'dark-s_px.jpg', 'dark-s_nx.jpg', 'dark-s_py.jpg', 'dark-s_ny.jpg', 'dark-s_pz.jpg', 'dark-s_nz.jpg' ] );
-				background.format = THREE.RGBFormat;
 
 
 				scene = new THREE.Scene();
 				scene = new THREE.Scene();
 				scene.background = background;
 				scene.background = background;