preload mine env maps
This commit is contained in:
@@ -10,10 +10,11 @@ AFRAME.registerComponent('gpu-preloader', {
|
||||
this.preloadBeamMap();
|
||||
this.preloadBeatEnvMap();
|
||||
this.preloadCutParticles();
|
||||
this.preloadMineEnvMaps();
|
||||
this.preloadMissMap();
|
||||
this.preloadWallMap();
|
||||
this.preloadWrongMap();
|
||||
}, 250);
|
||||
}, 1000);
|
||||
},
|
||||
|
||||
preloadBeamMap: function () {
|
||||
@@ -39,6 +40,12 @@ AFRAME.registerComponent('gpu-preloader', {
|
||||
this.preloadTexture(particles.components.particleplayer.material.map);
|
||||
},
|
||||
|
||||
preloadMineEnvMaps: function () {
|
||||
const stageColors = this.el.sceneEl.components['stage-colors'];
|
||||
this.preloadTexture(stageColors.mineEnvMap.red);
|
||||
this.preloadTexture(stageColors.mineEnvMap.blue);
|
||||
},
|
||||
|
||||
preloadMissMap: function () {
|
||||
const miss = document.querySelector('#missLeft');
|
||||
this.preloadTexture(miss.getObject3D('mesh').material.map);
|
||||
|
||||
Reference in New Issue
Block a user