mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-07-08 21:24:34 +00:00
Fixes mapping of imposter images to be packed as part of the shape asset, and fixes paths to be formatted more sanely.
This commit is contained in:
parent
bd876e427a
commit
a8b3d874a1
7 changed files with 186 additions and 7 deletions
|
|
@ -969,6 +969,39 @@ void TSShape::setupBillboardDetails( const String &cachePath )
|
|||
}
|
||||
}
|
||||
|
||||
void TSShape::setupBillboardDetails(const String& cachePath, const String& diffsePath, const String& normalPath)
|
||||
{
|
||||
// set up billboard details -- only do this once, meaning that
|
||||
// if we add a sequence to the shape we don't redo the billboard
|
||||
// details...
|
||||
if (!billboardDetails.empty())
|
||||
return;
|
||||
|
||||
for (U32 i = 0; i < details.size(); i++)
|
||||
{
|
||||
const Detail& det = details[i];
|
||||
|
||||
if (det.subShapeNum >= 0)
|
||||
continue; // not a billboard detail
|
||||
|
||||
while (billboardDetails.size() <= i)
|
||||
billboardDetails.push_back(NULL);
|
||||
|
||||
billboardDetails[i] = new TSLastDetail(this,
|
||||
cachePath,
|
||||
diffsePath,
|
||||
normalPath,
|
||||
det.bbEquatorSteps,
|
||||
det.bbPolarSteps,
|
||||
det.bbPolarAngle,
|
||||
det.bbIncludePoles,
|
||||
det.bbDetailLevel,
|
||||
det.bbDimension);
|
||||
|
||||
billboardDetails[i]->update();
|
||||
}
|
||||
}
|
||||
|
||||
void TSShape::initMaterialList()
|
||||
{
|
||||
S32 numSubShapes = subShapeFirstObject.size();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue