Skip to content

Commit

Permalink
fixed tmx culling (cocos#3056)
Browse files Browse the repository at this point in the history
  • Loading branch information
2youyou2 authored and pandamicro committed Aug 8, 2018
1 parent cb09d7e commit 91d6dfd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cocos2d/tilemap/tmx-layer-assembler.js
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ let tmxAssembler = {
let camera = cc.Camera.findCamera(comp.node);
if (camera) {
camera.getWorldToCameraMatrix(_mat4_temp2);
mat4.mul(_mat4_temp, _mat4_temp, _mat4_temp2);
mat4.mul(_mat4_temp, _mat4_temp2, _mat4_temp);
cullingA = _mat4_temp.m00;
cullingD = _mat4_temp.m05;
cullingMapx = ox * cullingA + oy * _mat4_temp.m04 + _mat4_temp.m12;
Expand Down

0 comments on commit 91d6dfd

Please sign in to comment.