Procházet zdrojové kódy

Updated memorial.png to RGBM16 format

WestLangley před 6 roky
rodič
revize
7e8a8e539a
2 změnil soubory, kde provedl 4 přidání a 5 odebrání
  1. binární
      examples/textures/memorial.png
  2. 4 5
      examples/webgl_loader_texture_rgbm.html

binární
examples/textures/memorial.png


+ 4 - 5
examples/webgl_loader_texture_rgbm.html

@@ -75,14 +75,13 @@
 
 
 				camera = new THREE.OrthographicCamera( - aspect, aspect, 1, - 1, 0, 1 );
 				camera = new THREE.OrthographicCamera( - aspect, aspect, 1, - 1, 0, 1 );
 
 
-				new THREE.TextureLoader().load( 'textures/cube/pisaRGBM16/nz.png', function ( texture ) {
+				new THREE.TextureLoader().load( 'textures/memorial.png', function ( texture ) {
 
 
 					texture.encoding = THREE.RGBM16Encoding;
 					texture.encoding = THREE.RGBM16Encoding;
 
 
-					// these setting are set correctly by default
-					//texture.minFilter = THREE.LinearMipMapLinearFilter;
-					//texture.magFilter = THREE.LinearFilter;
-					//texture.flipY = true;
+					texture.minFilter = THREE.LinearFilter;
+					texture.magFilter = THREE.LinearFilter;
+					texture.flipY = true;
 
 
 					var material = new THREE.MeshBasicMaterial( { map: texture } );
 					var material = new THREE.MeshBasicMaterial( { map: texture } );
 
 

粤ICP备19079148号