keyboard restyling (fixes #124)

This commit is contained in:
Diego F. Goberna
2018-10-18 01:37:06 +02:00
parent 4ea609ae07
commit a5ef3eedd4
9 changed files with 590 additions and 41 deletions

View File

@@ -45,9 +45,9 @@ AFRAME.registerComponent('gpu-preloader', {
},
preloadKeyboard: function () {
const keyboard = document.getElementById('keyboard')
const kbImg = keyboard.components['super-keyboard'].kbImg;
this.preloadTexture(kbImg.getObject3D('mesh').material.map);
const keyboard = document.getElementById('keyboard').components['super-keyboard'];
this.preloadTexture(keyboard.kbImg.getObject3D('mesh').material.map);
this.preloadTexture(keyboard.keyColorPlane.getObject3D('mesh').material.map);
},
preloadMineEnvMaps: function () {