From 9ea345e6372433217915a45b73acb81a81627bde Mon Sep 17 00:00:00 2001 From: Andy Nichols Date: Mon, 26 Aug 2019 13:39:45 +0200 Subject: Add property to Camera to enable frustum culling when needed MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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ä Reviewed-by: Miikka Heikkinen --- src/runtime/Qt3DSAttributeHashes.h | 1 + 1 file changed, 1 insertion(+) (limited to 'src/runtime/Qt3DSAttributeHashes.h') 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 -- cgit v1.2.3