| 26799 | texture.generateMipmaps = false; |
| 26800 | |
| 26801 | var generateCubeFaceCallback = function ( rq, img ) { |
| 26802 | |
| 26803 | return function () { |
| 26804 | |
| 26805 | var buffer = rq.response; |
| 26806 | var dds = THREE.ImageUtils.parseDDS( buffer, true ); |
| 26807 | |
| 26808 | img.format = dds.format; |
| 26809 | |
| 26810 | img.mipmaps = dds.mipmaps; |
| 26811 | img.width = dds.width; |
| 26812 | img.height = dds.height; |
| 26813 | |
| 26814 | images.loadCount += 1; |
| 26815 | |
| 26816 | if ( images.loadCount === 6 ) { |
| 26817 | |
| 26818 | texture.format = dds.format; |
| 26819 | texture.needsUpdate = true; |
| 26820 | if ( onLoad ) onLoad( texture ); |
| 26821 | |
| 26822 | } |
| 26823 | |
| 26824 | } |
| 26825 | |
| 26826 | } |
| 26827 | |
| 26828 | // compressed cubemap textures as 6 separate DDS files |
| 26829 | |