浏览代码

Updated memorial.png to RGBM16 format

WestLangley 6 年之前
父节点
当前提交
7e8a8e539a
共有 2 个文件被更改,包括 4 次插入5 次删除
  1. 二进制
      examples/textures/memorial.png
  2. 4 5
      examples/webgl_loader_texture_rgbm.html

二进制
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 } );