Laya设置Laya.stage.screenMode = Laya.Stage.SCREEN_HORIZTAL;
后的横屏是竖屏状态逆时针转了90度。但是我希望是顺时针转90度。修改如下:
修改文件laya.core.js
if (rotation){
if (this._screenMode==="horizontal"){
mat.rotate(Math.PI / 2);
mat.translate(screenHeight / pixelRatio,0);
this.canvasDegree=90;
}else {
mat.rotate(Math.PI / 2);
mat.translate(screenHeight / pixelRatio,0);
this.canvasDegree=90;
// mat.rotate(-Math.PI / 2);
// mat.translate(0,screenWidth / pixelRatio);
// this.canvasDegree=-90;
}
}