mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-07-14 08:04:40 +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
|
|
@ -92,6 +92,9 @@ protected:
|
|||
/// where we'll be storing our cache for rendered imposters.
|
||||
String mCachePath;
|
||||
|
||||
String mDiffusePath;
|
||||
String mNormalPath;
|
||||
|
||||
/// The shape detail level to capture into
|
||||
/// the imposters.
|
||||
S32 mDl;
|
||||
|
|
@ -148,10 +151,10 @@ protected:
|
|||
void _validateDim();
|
||||
|
||||
/// Helper which returns the imposter diffuse map path.
|
||||
String _getDiffuseMapPath() const { return mCachePath + ".imposter.dds"; }
|
||||
String _getDiffuseMapPath() const { return mDiffusePath; }
|
||||
|
||||
/// Helper which returns the imposter normal map path.
|
||||
String _getNormalMapPath() const { return mCachePath + ".imposter_normals.dds"; }
|
||||
String _getNormalMapPath() const { return mNormalPath; }
|
||||
|
||||
public:
|
||||
|
||||
|
|
@ -164,6 +167,16 @@ public:
|
|||
S32 dl,
|
||||
S32 dim );
|
||||
|
||||
TSLastDetail(TSShape* shape,
|
||||
const String& cachePath,
|
||||
const String& diffusePath,
|
||||
const String& normalPath,
|
||||
U32 numEquatorSteps,
|
||||
U32 numPolarSteps,
|
||||
F32 polarAngle,
|
||||
bool includePoles,
|
||||
S32 dl, S32 dim);
|
||||
|
||||
~TSLastDetail();
|
||||
|
||||
/// Global preference for rendering imposters to shadows.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue