mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-02-13 03:33:48 +00:00
cleaned up variant of https://github.com/GarageGames/Torque3D/pull/768 alterations: opengl support, in-shader bug-reporting, direction vector fit to material slider-bar.
This commit is contained in:
parent
949251b988
commit
c6cdfafe4e
42 changed files with 2680 additions and 8 deletions
|
|
@ -39,7 +39,6 @@
|
|||
#include "gfx/gfxDrawUtil.h"
|
||||
#include "core/module.h"
|
||||
|
||||
|
||||
MODULE_BEGIN( TSShapeInstance )
|
||||
|
||||
MODULE_INIT
|
||||
|
|
@ -783,3 +782,16 @@ void TSShapeInstance::prepCollision()
|
|||
}
|
||||
}
|
||||
|
||||
// Returns true is the shape contains any materials with accumulation enabled.
|
||||
bool TSShapeInstance::hasAccumulation()
|
||||
{
|
||||
bool result = false;
|
||||
for ( U32 i = 0; i < mMaterialList->size(); ++i )
|
||||
{
|
||||
BaseMatInstance* mat = mMaterialList->getMaterialInst(i);
|
||||
if ( mat->hasAccumulation() )
|
||||
result = true;
|
||||
}
|
||||
return result;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue