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/runtime/Qt3DSAttributeHashes.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/runtime/Qt3DSAttributeHashes.h')
-rw-r--r-- | src/runtime/Qt3DSAttributeHashes.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/runtime/Qt3DSAttributeHashes.h b/src/runtime/Qt3DSAttributeHashes.h index 1f712a8..a1cd41f 100644 --- a/src/runtime/Qt3DSAttributeHashes.h +++ b/src/runtime/Qt3DSAttributeHashes.h @@ -72,6 +72,7 @@ enum EAttribute { ATTRIBUTE_EDGETESS = 0x023933D2, // edgetess ATTRIBUTE_INNERTESS = 0x01529259, // innertess ATTRIBUTE_ORTHOGRAPHIC = 0x0244BB70, // orthographic + ATTRIBUTE_ENABLEFRUSTUMCULLING = 0x01F3E88F, // enablefrustumculling ATTRIBUTE_CLIPNEAR = 0x0068FF28, // clipnear ATTRIBUTE_CLIPFAR = 0x037EF699, // clipfar ATTRIBUTE_FOV = 0x00D60213, // fov |