unity中的Culling Mask
作者:互联网
摄像机按层渲染
Camera.cullingMask = 1<<x;//渲染x层
Camera.cullingMask = ~(1<<x);//渲染除去x的所有层
Camera.cullingMask &= ~(1<<x);//关闭层x
Camera.cullingMask |= (1<<x);//打开层x
Camera.cullingMask = (1<<x) + (1<<y) + (1<<z);//摄像机只显示x,y,z层。
CullingMask = 0//nothing
CullingMask = -1//everything
标签:Culling,Mask,everything,unity,Camera,cullingMask,CullingMask 来源: https://www.cnblogs.com/mcyushao/p/10746402.html