How to use the PMREMGenerator function from three

Find comprehensive JavaScript three.PMREMGenerator code examples handpicked from public code repositorys.

500
501
502
503
504
505
506
507
508
509

return new Promise((resolve) => {

  new THREE.HDRCubeTextureLoader().load(THREE.UnsignedByteType, cubeMapURLs, (hdrCubeMap) => {

    var pmremGenerator = new THREE.PMREMGenerator(hdrCubeMap);
    pmremGenerator.update(this.renderer);

    var pmremCubeUVPacker = new THREE.PMREMCubeUVPacker(pmremGenerator.cubeLods);
    pmremCubeUVPacker.update(this.renderer);
fork icon0
star icon0
watch icon0

+ 5 other calls in file

Other functions in three

Sorted by popularity

function icon

three.Vector3 is the most popular function in three (22341 examples)