| 26843 | texture.generateMipmaps = false; |
| 26844 | |
| 26845 | var generateCubeFaceCallback = function ( rq, img ) { |
| 26846 | |
| 26847 | return function () { |
| 26848 | |
| 26849 | var buffer = rq.response; |
| 26850 | var dds = THREE.ImageUtils.parseDDS( buffer, true ); |
| 26851 | |
| 26852 | img.format = dds.format; |
| 26853 | |
| 26854 | img.mipmaps = dds.mipmaps; |
| 26855 | img.width = dds.width; |
| 26856 | img.height = dds.height; |
| 26857 | |
| 26858 | images.loadCount += 1; |
| 26859 | |
| 26860 | if ( images.loadCount === 6 ) { |
| 26861 | |
| 26862 | texture.format = dds.format; |
| 26863 | texture.needsUpdate = true; |
| 26864 | if ( onLoad ) onLoad( texture ); |
| 26865 | |
| 26866 | } |
| 26867 | |
| 26868 | } |
| 26869 | |
| 26870 | } |
| 26871 | |
| 26872 | // compressed cubemap textures as 6 separate DDS files |
| 26873 | |