mirror of
https://github.com/cocos/cocos4.git
synced 2026-12-03 01:12:42 +08:00
@@ -701,7 +701,7 @@ var game = {
|
||||
if (cc.sys.browserType === cc.sys.BROWSER_TYPE_WECHAT_GAME_SUB) {
|
||||
localCanvas = wx.getSharedCanvas();
|
||||
}
|
||||
else if (JSB) {
|
||||
else if (CC_JSB) {
|
||||
localCanvas = window.__cccanvas;
|
||||
}
|
||||
else {
|
||||
|
||||
+5
-5
@@ -50,14 +50,14 @@ function _mat4ToArray(typedArray, mat4) {
|
||||
typedArray[15] = mat4.m15;
|
||||
}
|
||||
|
||||
Node.prototype.getWorldRTInAB = function (node) {
|
||||
node.getWorldRT(_mat4_temp);
|
||||
Node.prototype.getWorldRTInAB = function () {
|
||||
this.getWorldRT(_mat4_temp);
|
||||
_mat4ToArray(_typedArray_temp, _mat4_temp);
|
||||
return _typedArray_temp;
|
||||
};
|
||||
|
||||
Node.prototype.getWorldMatrixInAB = function (node) {
|
||||
node._updateWorldMatrix();
|
||||
_mat4ToArray(_typedArray_temp, node._worldMatrix);
|
||||
Node.prototype.getWorldMatrixInAB = function () {
|
||||
this._updateWorldMatrix();
|
||||
_mat4ToArray(_typedArray_temp, this._worldMatrix);
|
||||
return _typedArray_temp;
|
||||
};
|
||||
@@ -23,8 +23,6 @@
|
||||
THE SOFTWARE.
|
||||
****************************************************************************/
|
||||
|
||||
const utils = require('./utils');
|
||||
|
||||
// projection
|
||||
renderer.PROJ_PERSPECTIVE = 0;
|
||||
renderer.PROJ_ORTHO = 1;
|
||||
|
||||
Reference in New Issue
Block a user