Debian Codegraph @

Compositor/Classic/classic.xml

raw symbols SCIP
1 <?xml version="1.0" encoding="utf-8"?>
2
3 <!--
4 The 'Classic' Compositor pipeline imitates the rendering pipeline that was
5 used before multi-pass rendering was introduced, with the added feature of
6 optional shadow mapping.
7 The precision of the Z-buffer deteriorates with huge near-far spreads, so
8 two passes with different depth ranges are used to avoid Z-fighting and
9 other unpleasantness.
10 -->
11 <PropertyList>
12 <name>Classic</name>
13
14 <buffer>
15 <name>sun-shadowmap-atlas</name>
16 <type>2d</type>
17 <width><property>/sim/rendering/shadows/sun-atlas-size</property></width>
18 <height><property>/sim/rendering/shadows/sun-atlas-size</property></height>
19 <format>depth16</format>
20 <wrap-s>clamp-to-border</wrap-s>
21 <wrap-t>clamp-to-border</wrap-t>
22 <wrap-r>clamp-to-border</wrap-r>
23 <min-filter>linear</min-filter>
24 <mag-filter>linear</mag-filter>
25 <border-color type="vec4d">1.0 1.0 1.0 1.0</border-color>
26 <shadow-comparison>true</shadow-comparison>
27 <condition>
28 <property>/sim/rendering/shadows/enabled</property>
29 </condition>
30 </buffer>
31
32 <pass n="0" include="csm-pass.xml">
33 <name>csm0</name>
34 <near-m>0.1</near-m>
35 <far-m>3.0</far-m>
36 <viewport>
37 <x>0.0</x>
38 <y>0.0</y>
39 <width>0.5</width>
40 <height>0.5</height>
41 </viewport>
42 </pass>
43 <pass n="1" include="csm-pass.xml">
44 <name>csm1</name>
45 <near-m>3.0</near-m>
46 <far-m>70.0</far-m>
47 <viewport>
48 <x>0.5</x>
49 <y>0.0</y>
50 <width>0.5</width>
51 <height>0.5</height>
52 </viewport>
53 </pass>
54 <pass n="2" include="csm-pass.xml">
55 <name>csm2</name>
56 <near-m>70.0</near-m>
57 <far-m>300.0</far-m>
58 <viewport>
59 <x>0.0</x>
60 <y>0.5</y>
61 <width>0.5</width>
62 <height>0.5</height>
63 </viewport>
64 </pass>
65 <pass n="3" include="csm-pass.xml">
66 <name>csm3</name>
67 <near-m>300.0</near-m>
68 <far-m>1000.0</far-m>
69 <viewport>
70 <x>0.5</x>
71 <y>0.5</y>
72 <width>0.5</width>
73 <height>0.5</height>
74 </viewport>
75 </pass>
76
77 <pass n="10" include="common-scene.xml">
78 <name>far</name>
79 <clear-mask>color depth</clear-mask>
80 <z-near>100.0</z-near>
81 </pass>
82 <pass n="11" include="common-scene.xml">
83 <name>near</name>
84 <cull-mask>0xfff7ff</cull-mask> <!-- Cull the sky (bit 11 off) -->
85 <!-- Only clear the depth buffer so color information isn't overwritten -->
86 <clear-mask>depth</clear-mask>
87 <z-far>100.0</z-far>
88 </pass>
89 </PropertyList>