| 27552 | texture.generateMipmaps = false; |
| 27553 | |
| 27554 | var generateCubeFaceCallback = function ( rq, img ) { |
| 27555 | |
| 27556 | return function () { |
| 27557 | |
| 27558 | var buffer = rq.response; |
| 27559 | var dds = THREE.ImageUtils.parseDDS( buffer, true ); |
| 27560 | |
| 27561 | img.format = dds.format; |
| 27562 | |
| 27563 | img.mipmaps = dds.mipmaps; |
| 27564 | img.width = dds.width; |
| 27565 | img.height = dds.height; |
| 27566 | |
| 27567 | images.loadCount += 1; |
| 27568 | |
| 27569 | if ( images.loadCount === 6 ) { |
| 27570 | |
| 27571 | texture.format = dds.format; |
| 27572 | texture.needsUpdate = true; |
| 27573 | if ( onLoad ) onLoad( texture ); |
| 27574 | |
| 27575 | } |
| 27576 | |
| 27577 | } |
| 27578 | |
| 27579 | } |
| 27580 | |
| 27581 | // compressed cubemap textures as 6 separate DDS files |
| 27582 | |