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:
Vincent Gee 2014-11-06 08:54:49 -05:00
parent 378a933894
commit c4e3a68f7c
2 changed files with 84 additions and 0 deletions

View file

@ -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();