|
发表于 2014-10-21 14:18:50
|
显示全部楼层
其实就是这个函数
void StateSet::setRenderingHint(int hint)
{
_renderingHint = hint;
// temporary hack to get new render bins working.
switch(_renderingHint)
{
case(TRANSPARENT_BIN):
{
_binMode = USE_RENDERBIN_DETAILS;
_binNum = 10;
_binName = "DepthSortedBin";
break;
}
case(OPAQUE_BIN):
{
_binMode = USE_RENDERBIN_DETAILS;
_binNum = 0;
_binName = "RenderBin";
break;
}
default: // DEFAULT_BIN
{
setRenderBinToInherit();
break;
}
}
}
{
_binMode = mode;
_binNum = binNum;
_binName = binName;
}
你看两者是不是一样,前序后序是相对当前渲染元的渲染顺序,每一个渲染元都有子渲染元bins,bins.binNUm<0前序,>0后序 |
|