|
@@ -54,34 +54,10 @@
|
|
|
|
|
|
camera = new THREE.OrthographicCamera( - aspect, aspect, 1, - 1, 0, 1 );
|
|
camera = new THREE.OrthographicCamera( - aspect, aspect, 1, - 1, 0, 1 );
|
|
|
|
|
|
- var type = THREE.UnsignedByteType;
|
|
|
|
- //var type = THREE.FloatType;
|
|
|
|
-
|
|
|
|
new THREE.RGBELoader()
|
|
new THREE.RGBELoader()
|
|
- .setType( type )
|
|
|
|
|
|
+ .setType( THREE.UnsignedByteType ) // alt: THREE.FloatType
|
|
.load( 'textures/memorial.hdr', function ( texture, textureData ) {
|
|
.load( 'textures/memorial.hdr', function ( texture, textureData ) {
|
|
|
|
|
|
- switch ( type ) {
|
|
|
|
-
|
|
|
|
- case THREE.UnsignedByteType:
|
|
|
|
-
|
|
|
|
- texture.encoding = THREE.RGBEEncoding;
|
|
|
|
- texture.minFilter = THREE.NearestFilter;
|
|
|
|
- texture.magFilter = THREE.NearestFilter;
|
|
|
|
- break;
|
|
|
|
-
|
|
|
|
- case THREE.FloatType:
|
|
|
|
-
|
|
|
|
- texture.encoding = THREE.LinearEncoding;
|
|
|
|
- texture.minFilter = THREE.LinearFilter;
|
|
|
|
- texture.magFilter = THREE.LinearFilter;
|
|
|
|
- break;
|
|
|
|
-
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
- texture.generateMipmaps = false;
|
|
|
|
- texture.flipY = true;
|
|
|
|
-
|
|
|
|
//console.log( textureData );
|
|
//console.log( textureData );
|
|
//console.log( texture );
|
|
//console.log( texture );
|
|
|
|
|