mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-07-11 06:34:36 +00:00
Merge pull request #147 from Azaezel/alpha40_TranslucentShadows
adds alphatest shadows for translucent objects
This commit is contained in:
commit
0e006b2264
8 changed files with 14 additions and 8 deletions
|
|
@ -704,7 +704,7 @@ void ConvexShape::prepRenderImage( SceneRenderState *state )
|
|||
|
||||
// Set our Material
|
||||
ri->matInst = matInst;
|
||||
if (matInst->getMaterial()->isTranslucent())
|
||||
if (matInst->getMaterial()->isTranslucent() && (!(matInst->getMaterial()->isAlphatest() && state->isShadowPass())))
|
||||
{
|
||||
ri->translucentSort = true;
|
||||
ri->type = RenderPassManager::RIT_Translucent;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue