diff options
author | Andy Nichols <andy.nichols@qt.io> | 2019-08-26 13:39:45 +0200 |
---|---|---|
committer | Andy Nichols <andy.nichols@qt.io> | 2019-08-29 07:51:48 +0200 |
commit | 9ea345e6372433217915a45b73acb81a81627bde (patch) | |
tree | 74e67716130df22dd9ecd7dad5722c272cdaf146 /src/dm/systems/Qt3DSDMComposerTypeDefinitions.h | |
parent | 0cce5a54b0f9971021fc0bd0c11198fbe7845ee8 (diff) |
Add property to Camera to enable frustum culling when needed
By default frustum culling is disabled because for most scenes all items
are always visible. There is a not insignificant cost to doing frustum
culling, so it shouldn't be the default behavior.
Change-Id: Ibc0c0a4bd1cf65a215256de9ec22ca1d97eb6de5
Reviewed-by: Antti Määttä <antti.maatta@qt.io>
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
Diffstat (limited to 'src/dm/systems/Qt3DSDMComposerTypeDefinitions.h')
-rw-r--r-- | src/dm/systems/Qt3DSDMComposerTypeDefinitions.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/dm/systems/Qt3DSDMComposerTypeDefinitions.h b/src/dm/systems/Qt3DSDMComposerTypeDefinitions.h index 9a075ae..84f08df 100644 --- a/src/dm/systems/Qt3DSDMComposerTypeDefinitions.h +++ b/src/dm/systems/Qt3DSDMComposerTypeDefinitions.h @@ -265,7 +265,8 @@ class IPropertySystem; HANDLE_COMPOSER_PROPERTY_DUPLICATE(controlledproperty, m_ControlledProperty, TDataStrPtr, L"") #define ITERATE_COMPOSER_CAMERA_PROPERTIES \ - HANDLE_COMPOSER_PROPERTY(orthographic, m_Orthographic, bool, false) \ + HANDLE_COMPOSER_PROPERTY(orthographic, m_Orthographic, bool, false) \ + HANDLE_COMPOSER_PROPERTY(enablefrustumculling, m_EnableFrustumCulling, bool, false) \ HANDLE_COMPOSER_PROPERTY(fov, m_Fov, float, 60.f) \ HANDLE_COMPOSER_PROPERTY(fovhorizontal, m_FovHorizontal, bool, false) \ HANDLE_COMPOSER_PROPERTY(clipnear, m_ClipNear, float, 10.f) \ |