summaryrefslogtreecommitdiffstats
path: root/res
diff options
context:
space:
mode:
authorLaszlo Agocs <laszlo.agocs@qt.io>2017-11-10 14:50:10 +0100
committerLaszlo Agocs <laszlo.agocs@qt.io>2017-11-13 12:33:30 +0000
commit60ccd744387b809887d3fff88c27a72869926c5f (patch)
tree76455ff9eb6c5b0b1b1eb13e3d722cda84cf772b /res
parent0708e8766582ba066b7e1927bb902892298a59c1 (diff)
Follow ShadowMapResolution changes
Add the missing default to the metadata xml as well. Likely an oversight on the application side. While we are at it, add default values in C++ too for lights, like we do for other classes. This is not really necessary for fields that have a default value in the metadata, but as we see the defaults can come and go, potentially leading to uninitialized variables. Better avoid this. Task-number: QT3DS-299 Change-Id: I4253a5d0bd2d6120fd7c627d072459cc8c0dec28 Reviewed-by: Andy Nichols <andy.nichols@qt.io>
Diffstat (limited to 'res')
-rw-r--r--res/DataModelMetadata/en-us/MetaData.xml2
1 files changed, 1 insertions, 1 deletions
diff --git a/res/DataModelMetadata/en-us/MetaData.xml b/res/DataModelMetadata/en-us/MetaData.xml
index 1d5cd6c..53c1625 100644
--- a/res/DataModelMetadata/en-us/MetaData.xml
+++ b/res/DataModelMetadata/en-us/MetaData.xml
@@ -243,7 +243,7 @@
<Property name="castshadow" formalName="Cast Shadows?" description="Enable shadow casting for this light" type="Boolean" default="False"/>
<Property name="shdwfactor" formalName="Shadow Darkness" description="Factor used to darken shadows" default="10.0" min="1.0" max="100.0" />
<Property name="shdwfilter" formalName="Shadow Softness" description="Width of the blur filter on the shadow map" min="1" max="100" default="35" />
- <Property name="shdwmapres" formalName="Shadow Resolution" description="Resolution of shadow map (powers of two)" type="Long" default="9" min="7" max="11" list="256:512:1024:2048" />
+ <Property name="shdwmapres" formalName="Shadow Resolution" description="Resolution of shadow map (powers of two)" type="ShadowMapResolution" default="9" />
<Property name="shdwbias" formalName="Shadow Depth Bias" description="Slight offset to avoid self-shadowing artifacts" default="0" min="-1.0" max="1.0" />
<Property name="shdwmapfar" formalName="Shadow Far Clip" description="Affects the maximum distance for the shadow depth map" default="5000" />
<Property name="shdwmapfov" formalName="Shadow Field of View" description="Affects the field of view of the shadow camera" default="90" min="1" max="179" />