Skip to content

Commit

Permalink
Bump aframe-master dist/ builds. (8c0cc3d...1d8cdb0)
Browse files Browse the repository at this point in the history
  • Loading branch information
SupermediumBot committed Nov 18, 2024
1 parent 1d8cdb0 commit c25783e
Show file tree
Hide file tree
Showing 5 changed files with 22 additions and 16 deletions.
30 changes: 18 additions & 12 deletions dist/aframe-master.js
Original file line number Diff line number Diff line change
Expand Up @@ -10110,24 +10110,30 @@ module.exports.Component = registerComponent('light', {
if (!data.envMap) {
// reset parameters if no map
light.copy(new THREE.LightProbe());
return;
}

// Populate the cache if not done for this envMap yet
if (probeCache[data.envMap] === undefined) {
probeCache[data.envMap] = new window.Promise(function (resolve) {
utils.srcLoader.validateCubemapSrc(data.envMap, function loadEnvMap(urls) {
CubeLoader.load(urls, function (cube) {
var tempLightProbe = THREE.LightProbeGenerator.fromCubeTexture(cube);
probeCache[data.envMap] = tempLightProbe;
resolve(tempLightProbe);
});
});
});
}

// Copy over light probe properties
if (probeCache[data.envMap] instanceof window.Promise) {
probeCache[data.envMap].then(function (tempLightProbe) {
light.copy(tempLightProbe);
});
}
if (probeCache[data.envMap] instanceof THREE.LightProbe) {
} else if (probeCache[data.envMap] instanceof THREE.LightProbe) {
light.copy(probeCache[data.envMap]);
}
probeCache[data.envMap] = new window.Promise(function (resolve) {
utils.srcLoader.validateCubemapSrc(data.envMap, function loadEnvMap(urls) {
CubeLoader.load(urls, function (cube) {
var tempLightProbe = THREE.LightProbeGenerator.fromCubeTexture(cube);
probeCache[data.envMap] = tempLightProbe;
light.copy(tempLightProbe);
});
});
});
},
onSetTarget: function (targetEl, light) {
light.target = targetEl.object3D;
Expand Down Expand Up @@ -24546,7 +24552,7 @@ __webpack_require__(/*! ./core/a-mixin */ "./src/core/a-mixin.js");
// Extras.
__webpack_require__(/*! ./extras/components/ */ "./src/extras/components/index.js");
__webpack_require__(/*! ./extras/primitives/ */ "./src/extras/primitives/index.js");
console.log('A-Frame Version: 1.6.0 (Date 2024-11-18, Commit #4e137a85)');
console.log('A-Frame Version: 1.6.0 (Date 2024-11-18, Commit #1d8cdb09)');
console.log('THREE Version (https://github.com/supermedium/three.js):', THREE.REVISION);

// Wait for ready state, unless user asynchronously initializes A-Frame.
Expand Down
2 changes: 1 addition & 1 deletion dist/aframe-master.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/aframe-master.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/aframe-master.min.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ require('./core/a-mixin');
require('./extras/components/');
require('./extras/primitives/');

console.log('A-Frame Version: 1.6.0 (Date 2024-11-18, Commit #4e137a85)');
console.log('A-Frame Version: 1.6.0 (Date 2024-11-18, Commit #1d8cdb09)');
console.log('THREE Version (https://github.com/supermedium/three.js):',
THREE.REVISION);

Expand Down

0 comments on commit c25783e

Please sign in to comment.