| 26315 | texture.generateMipmaps = false; |
| 26316 | |
| 26317 | var generateCubeFaceCallback = function ( rq, img ) { |
| 26318 | |
| 26319 | return function () { |
| 26320 | |
| 26321 | var buffer = rq.response; |
| 26322 | var dds = THREE.ImageUtils.parseDDS( buffer, true ); |
| 26323 | |
| 26324 | img.format = dds.format; |
| 26325 | |
| 26326 | img.mipmaps = dds.mipmaps; |
| 26327 | img.width = dds.width; |
| 26328 | img.height = dds.height; |
| 26329 | |
| 26330 | images.loadCount += 1; |
| 26331 | |
| 26332 | if ( images.loadCount === 6 ) { |
| 26333 | |
| 26334 | texture.format = dds.format; |
| 26335 | texture.needsUpdate = true; |
| 26336 | if ( onLoad ) onLoad( texture ); |
| 26337 | |
| 26338 | } |
| 26339 | |
| 26340 | } |
| 26341 | |
| 26342 | } |
| 26343 | |
| 26344 | // compressed cubemap textures as 6 separate DDS files |
| 26345 | |