mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-07-11 22:54:34 +00:00
Added Alpha LOD to tsStatic objects.
This allows designers to set the start and end distance for Alpha LOD on objects.
This commit is contained in:
parent
378a933894
commit
c4e3a68f7c
2 changed files with 84 additions and 0 deletions
|
|
@ -97,6 +97,13 @@ class TSStatic : public SceneObject
|
|||
};
|
||||
|
||||
public:
|
||||
void setAlphaLOD(bool enable, F32 start, F32 end, bool inverse)
|
||||
{
|
||||
mUseAlphaLod = enable;
|
||||
mAlphaLODStart = start;
|
||||
mAlphaLODEnd = end;
|
||||
mInvertAlphaLod = inverse;
|
||||
}
|
||||
|
||||
/// The different types of mesh data types
|
||||
enum MeshType
|
||||
|
|
@ -108,6 +115,11 @@ public:
|
|||
};
|
||||
|
||||
protected:
|
||||
bool mUseAlphaLod;
|
||||
F32 mAlphaLODStart;
|
||||
F32 mAlphaLODEnd;
|
||||
F32 mAlphaLOD;
|
||||
bool mInvertAlphaLod;
|
||||
|
||||
bool onAdd();
|
||||
void onRemove();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue