mirror of
https://github.com/overte-org/overte.git
synced 2025-04-15 11:29:00 +02:00
Workin on LOD support in streaming.
This commit is contained in:
parent
dd679d52f3
commit
47fe928995
2 changed files with 14 additions and 0 deletions
|
@ -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) {
|
||||
}
|
||||
|
||||
|
|
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue