summaryrefslogtreecommitdiffstats
path: root/res
diff options
context:
space:
mode:
authorLaszlo Agocs <laszlo.agocs@qt.io>2017-11-15 17:25:33 +0100
committerLaszlo Agocs <laszlo.agocs@qt.io>2017-11-18 08:50:03 +0000
commitd1f0d7868f1aefd29de602f23e9e4fa04f35ecac (patch)
tree3d46df9395c2cd74a7a82b92183dc99f2a68fa2e /res
parent848ed67ed3caa3082b8c1371b87548a170440348 (diff)
Support recreating the shadow framegraph subtree on the fly
Shadow map resolution is the only property that can cause this in practice and that value unlikely to change (esp. since now we mark it as non-animatable to follow 3DS1) Nonetheless the logic is more straightforward this way. Fix also the depth-stencil buffer logic. Lights can reuse the same buffer only when the desired size is the same. They need their own otherwise. There are also some important lessons & patterns in here when it comes to parenting QNodes. Task-number: QT3DS-428 Change-Id: I7cfec5a8ee6c065b10b2dc6b37b89afa46ace020 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 53c1625..28ea860 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="ShadowMapResolution" default="9" />
+ <Property name="shdwmapres" formalName="Shadow Resolution" description="Resolution of shadow map (powers of two)" type="ShadowMapResolution" default="9" animatable="False" />
<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" />