preload mine env maps
This commit is contained in:
@@ -10,10 +10,11 @@ AFRAME.registerComponent('gpu-preloader', {
|
|||||||
this.preloadBeamMap();
|
this.preloadBeamMap();
|
||||||
this.preloadBeatEnvMap();
|
this.preloadBeatEnvMap();
|
||||||
this.preloadCutParticles();
|
this.preloadCutParticles();
|
||||||
|
this.preloadMineEnvMaps();
|
||||||
this.preloadMissMap();
|
this.preloadMissMap();
|
||||||
this.preloadWallMap();
|
this.preloadWallMap();
|
||||||
this.preloadWrongMap();
|
this.preloadWrongMap();
|
||||||
}, 250);
|
}, 1000);
|
||||||
},
|
},
|
||||||
|
|
||||||
preloadBeamMap: function () {
|
preloadBeamMap: function () {
|
||||||
@@ -39,6 +40,12 @@ AFRAME.registerComponent('gpu-preloader', {
|
|||||||
this.preloadTexture(particles.components.particleplayer.material.map);
|
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 () {
|
preloadMissMap: function () {
|
||||||
const miss = document.querySelector('#missLeft');
|
const miss = document.querySelector('#missLeft');
|
||||||
this.preloadTexture(miss.getObject3D('mesh').material.map);
|
this.preloadTexture(miss.getObject3D('mesh').material.map);
|
||||||
|
|||||||
@@ -28,7 +28,7 @@
|
|||||||
bind__search-thumbnail-atlas="dummyUpdater: search.songSubNameTexts"
|
bind__search-thumbnail-atlas="dummyUpdater: search.songSubNameTexts"
|
||||||
bind__visible="searchResultsPage.length > 0"
|
bind__visible="searchResultsPage.length > 0"
|
||||||
geometry="primitive: plane; buffer: false; width: 0.2; height: 1.2"
|
geometry="primitive: plane; buffer: false; width: 0.2; height: 1.2"
|
||||||
dynamic-texture-atlas="canvasId: searchThumbnailImagesCanvas; canvasWidth: 64; canvasHeight: 512; numColumns: 1; numRows: 6; debug: true"
|
dynamic-texture-atlas="canvasId: searchThumbnailImagesCanvas; canvasWidth: 64; canvasHeight: 512; numColumns: 1; numRows: 6"
|
||||||
material="shader: flat; transparent: true"
|
material="shader: flat; transparent: true"
|
||||||
position="-0.45 0.0146 0.002"></a-entity>
|
position="-0.45 0.0146 0.002"></a-entity>
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user