diff options
author | Mike Krus <mike.krus@kdab.com> | 2017-01-19 19:47:27 +0000 |
---|---|---|
committer | Sean Harmer <sean.harmer@kdab.com> | 2017-01-23 21:45:24 +0000 |
commit | 45b5514ee1f816b24461f7523b779f65c6c93ea5 (patch) | |
tree | 53fd48ded880df657ee830ca61f64c69dde89847 /src/quick3d/imports/extras/qt3dquick3dextrasplugin.cpp | |
parent | a6c5261671379da7e8fb78b10508fc00d3e7b16a (diff) |
LevelOfDetail (LOD) node
Component to control complexity of entities based on either
distance to camera or size on screen.
Given a specific camera, the LevelOfDetail computes the distance to
the observer, or the screen size of the entity. The currentIndex
property is updated to identify which of the entries in the
provided array of distance or size ranges contains the current value.
A disabled LevelOfDetail component will act as a simple
(user controlled) switch.
Updates are not done on disabled sub trees since their
bounding boxes may not be valid.
Change-Id: Ifa4c088de6b80b6a6ed203070411761574686cdb
Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
Diffstat (limited to 'src/quick3d/imports/extras/qt3dquick3dextrasplugin.cpp')
-rw-r--r-- | src/quick3d/imports/extras/qt3dquick3dextrasplugin.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/quick3d/imports/extras/qt3dquick3dextrasplugin.cpp b/src/quick3d/imports/extras/qt3dquick3dextrasplugin.cpp index b20e416c2..7d695ea5b 100644 --- a/src/quick3d/imports/extras/qt3dquick3dextrasplugin.cpp +++ b/src/quick3d/imports/extras/qt3dquick3dextrasplugin.cpp @@ -75,6 +75,8 @@ static const struct { { "DefaultEffect", 2, 0 }, { "DefaultAlphaEffect", 2, 0 }, { "NormalDiffuseMapAlphaEffect", 2, 0 }, + // Scene Graph + { "LevelOfDetailLoader", 2, 2 }, // FrameGraphs { "ForwardRenderer", 2, 0 }, // Entities |