| 26991 | texture.generateMipmaps = false; |
| 26992 | |
| 26993 | var generateCubeFaceCallback = function ( rq, img ) { |
| 26994 | |
| 26995 | return function () { |
| 26996 | |
| 26997 | var buffer = rq.response; |
| 26998 | var dds = THREE.ImageUtils.parseDDS( buffer, true ); |
| 26999 | |
| 27000 | img.format = dds.format; |
| 27001 | |
| 27002 | img.mipmaps = dds.mipmaps; |
| 27003 | img.width = dds.width; |
| 27004 | img.height = dds.height; |
| 27005 | |
| 27006 | images.loadCount += 1; |
| 27007 | |
| 27008 | if ( images.loadCount === 6 ) { |
| 27009 | |
| 27010 | texture.format = dds.format; |
| 27011 | texture.needsUpdate = true; |
| 27012 | if ( onLoad ) onLoad( texture ); |
| 27013 | |
| 27014 | } |
| 27015 | |
| 27016 | } |
| 27017 | |
| 27018 | } |
| 27019 | |
| 27020 | // compressed cubemap textures as 6 separate DDS files |
| 27021 | |