在引擎中load _onTextureCubeLtcLoaded 方法中加载ltc文件。由于通过工具导出的json文件格式中,ltcdata采用的是 left right up down back front 等方向表示,而代码中加载的是 px py pz nx ny nz 等。
即 引擎代码
var urls=[URL.formatURL(ltcData.px,ltcBasePath),URL.formatURL(ltcData.nx,ltcBasePath),URL.formatURL(ltcData.py,ltcBasePath),URL.formatURL(ltcData.ny,ltcBasePath),URL.formatURL(ltcData.pz,ltcBasePath),URL.formatURL(ltcData.nz,ltcBasePath)];
应该为
var urls=[URL.formatURL(ltcData.right,ltcBasePath),URL.formatURL(ltcData.left,ltcBasePath),URL.formatURL(ltcData.down,ltcBasePath),URL.formatURL(ltcData.up,ltcBasePath),URL.formatURL(ltcData.back,ltcBasePath),URL.formatURL(ltcData.front,ltcBasePath)];
望周知!