Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

V2.4.0 tiledmap cullingmask #6284

Merged
merged 5 commits into from Mar 13, 2020

Conversation

sunnylanwanjun
Copy link
Contributor

@sunnylanwanjun sunnylanwanjun commented Mar 4, 2020

issue: https://github.com/cocos-creator/2d-tasks/issues/2563
测试例中用到了碰撞组件和节点遮挡接口,导致cullingmask值被覆盖,影响了渲染顺序。

@holycanvas holycanvas requested a review from 2youyou2 Mar 6, 2020
RenderFlow.validateRenderers();

_cullingMask = 1 << rootNode.groupIndex;
_cullingMask = rootNode.groupIndex === 0 && cullingMask ? cullingMask : (1 << rootNode.groupIndex);
Copy link
Member

@jareguo jareguo Mar 8, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

为什么 group !== 0 就无视 cullingMask ?

Copy link
Contributor Author

@sunnylanwanjun sunnylanwanjun Mar 9, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

修改实现方案了

@holycanvas holycanvas merged commit c15c2b1 into cocos:v2.4.0 Mar 13, 2020
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants