| 27490 | texture.generateMipmaps = false; |
| 27491 | |
| 27492 | var generateCubeFaceCallback = function ( rq, img ) { |
| 27493 | |
| 27494 | return function () { |
| 27495 | |
| 27496 | var buffer = rq.response; |
| 27497 | var dds = THREE.ImageUtils.parseDDS( buffer, true ); |
| 27498 | |
| 27499 | img.format = dds.format; |
| 27500 | |
| 27501 | img.mipmaps = dds.mipmaps; |
| 27502 | img.width = dds.width; |
| 27503 | img.height = dds.height; |
| 27504 | |
| 27505 | images.loadCount += 1; |
| 27506 | |
| 27507 | if ( images.loadCount === 6 ) { |
| 27508 | |
| 27509 | texture.format = dds.format; |
| 27510 | texture.needsUpdate = true; |
| 27511 | if ( onLoad ) onLoad( texture ); |
| 27512 | |
| 27513 | } |
| 27514 | |
| 27515 | } |
| 27516 | |
| 27517 | } |
| 27518 | |
| 27519 | // compressed cubemap textures as 6 separate DDS files |
| 27520 | |