mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-01-19 23:53:52 +00:00
Actually copy alpha blended drawables to the new stategraph
This commit is contained in:
parent
cdbf19a508
commit
fcfd340c69
1 changed files with 9 additions and 1 deletions
|
@ -106,7 +106,15 @@ StateGraph* ShadowsBin::cullStateGraph(StateGraph* sg, StateGraph* root, std::un
|
||||||
}
|
}
|
||||||
|
|
||||||
if (state.mAlphaBlend)
|
if (state.mAlphaBlend)
|
||||||
return sg->find_or_insert(mShaderAlphaTestStateSet);
|
{
|
||||||
|
sg_new = sg->find_or_insert(mShaderAlphaTestStateSet);
|
||||||
|
for (RenderLeaf* leaf : sg->_leaves)
|
||||||
|
{
|
||||||
|
leaf->_parent = sg_new;
|
||||||
|
sg_new->_leaves.push_back(leaf);
|
||||||
|
}
|
||||||
|
return sg_new;
|
||||||
|
}
|
||||||
return sg;
|
return sg;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue