Workin on LOD support in streaming.

This commit is contained in:
Andrzej Kapolka 2014-03-04 11:18:31 -08:00
parent dd679d52f3
commit 47fe928995
2 changed files with 14 additions and 0 deletions

View file

@ -22,6 +22,11 @@ REGISTER_META_OBJECT(Spanner)
REGISTER_META_OBJECT(Sphere)
REGISTER_META_OBJECT(StaticModel)
MetavoxelLOD::MetavoxelLOD(const glm::vec3& position, float threshold) :
position(position),
threshold(threshold) {
}
MetavoxelData::MetavoxelData() : _size(1.0f) {
}

View file

@ -31,6 +31,15 @@ class NetworkValue;
class Spanner;
class SpannerRenderer;
/// Determines whether to subdivide each node when traversing.
class MetavoxelLOD {
public:
glm::vec3 position;
float threshold;
MetavoxelLOD(const glm::vec3& position = glm::vec3(), float threshold = 0.0f);
};
/// The base metavoxel representation shared between server and client.
class MetavoxelData {
public: