summaryrefslogtreecommitdiffstats
path: root/res
diff options
context:
space:
mode:
authorAndy Nichols <andy.nichols@qt.io>2019-08-26 13:39:45 +0200
committerAndy Nichols <andy.nichols@qt.io>2019-08-29 07:51:48 +0200
commit9ea345e6372433217915a45b73acb81a81627bde (patch)
tree74e67716130df22dd9ecd7dad5722c272cdaf146 /res
parent0cce5a54b0f9971021fc0bd0c11198fbe7845ee8 (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 'res')
-rw-r--r--res/DataModelMetadata/en-us/MetaData.xml3
1 files changed, 2 insertions, 1 deletions
diff --git a/res/DataModelMetadata/en-us/MetaData.xml b/res/DataModelMetadata/en-us/MetaData.xml
index 30db5b3..93ad17a 100644
--- a/res/DataModelMetadata/en-us/MetaData.xml
+++ b/res/DataModelMetadata/en-us/MetaData.xml
@@ -203,7 +203,8 @@
<Property name="pivot" formalName="Pivot" type="Vector" category="Basic Properties" description="Offset of the contents away from the local center" />
<!-- Camera Propertiess -->
- <Property name="orthographic" formalName="Orthographic" type="Boolean" category="Camera Properties" description="Remove all perspective from the camera?" />
+ <Property name="orthographic" formalName="Orthographic" type="Boolean" category="Camera Properties" description="Remove all perspective from the camera?" />
+ <Property name="enablefrustumculling" formalName="Enable Frustum Culling" type="Boolean" default="False" category="Camera Properties" description="Remove all items from scene not visible from the camera." />
<Property name="fov" formalName="Field of View" min="1" max="180" default="60" category="Camera Properties" description="Viewing angle of the camera\n(how much it can see)" >
<ShowIfEqual property="orthographic" value="False" />
</Property>