1
0
Fork 0
fgdata/Compositor/ALS/als.xml

113 lines
2.6 KiB
XML
Raw Normal View History

2019-02-04 16:58:09 +00:00
<?xml version="1.0" encoding="utf-8"?>
<PropertyList>
<name>ALS</name>
2019-02-04 16:58:09 +00:00
<buffer>
<name>color</name>
<type>2d</type>
<width>screen</width>
<height>screen</height>
<format>rgba8</format>
</buffer>
<buffer>
<name>sun-shadowmap-atlas</name>
2019-02-04 16:58:09 +00:00
<type>2d</type>
<width><property>/sim/rendering/als/shadows/sun-atlas-size</property></width>
<height><property>/sim/rendering/als/shadows/sun-atlas-size</property></height>
2019-02-04 16:58:09 +00:00
<format>depth32f</format>
<wrap-s>clamp-to-border</wrap-s>
<wrap-t>clamp-to-border</wrap-t>
<wrap-r>clamp-to-border</wrap-r>
<min-filter>linear</min-filter>
<mag-filter>linear</mag-filter>
2019-02-04 16:58:09 +00:00
<border-color type="vec4d">1.0 1.0 1.0 1.0</border-color>
<shadow-comparison>true</shadow-comparison>
</buffer>
<!-- Shadow mapping pre-passes -->
2019-02-04 16:58:09 +00:00
<pass include="csm.xml">
<name>csm0</name>
<near-m>0.1</near-m>
<far-m>3.0</far-m>
<viewport>
<x>0.0</x>
<y>0.0</y>
<width>0.5</width>
<height>0.5</height>
2019-02-04 16:58:09 +00:00
</viewport>
</pass>
<pass include="csm.xml">
<name>csm1</name>
<near-m>3.0</near-m>
<far-m>50.0</far-m>
2019-02-04 16:58:09 +00:00
<viewport>
<x>0.5</x>
2019-02-04 16:58:09 +00:00
<y>0.0</y>
<width>0.5</width>
<height>0.5</height>
2019-02-04 16:58:09 +00:00
</viewport>
</pass>
<pass include="csm.xml">
<name>csm2</name>
<near-m>50.0</near-m>
<far-m>150.0</far-m>
2019-02-04 16:58:09 +00:00
<viewport>
<x>0.0</x>
<y>0.5</y>
<width>0.5</width>
<height>0.5</height>
2019-02-04 16:58:09 +00:00
</viewport>
</pass>
<pass include="csm.xml">
<name>csm3</name>
<near-m>150.0</near-m>
<far-m>1500.0</far-m>
2019-02-04 16:58:09 +00:00
<viewport>
<x>0.5</x>
<y>0.5</y>
<width>0.5</width>
<height>0.5</height>
2019-02-04 16:58:09 +00:00
</viewport>
</pass>
2019-02-04 16:58:09 +00:00
<pass>
<name>forward</name>
<type>scene</type>
<effect-scheme>als-lighting</effect-scheme>
<!--
<clustered-shading>
<tile-size>128</tile-size>
<num-threads>4</num-threads>
<depth-slices>16</depth-slices>
</clustered-shading>
-->
2019-02-04 16:58:09 +00:00
<use-shadow-pass>csm0</use-shadow-pass>
<use-shadow-pass>csm1</use-shadow-pass>
<use-shadow-pass>csm2</use-shadow-pass>
<use-shadow-pass>csm3</use-shadow-pass>
2019-02-04 16:58:09 +00:00
<binding>
<buffer>sun-shadowmap-atlas</buffer>
2019-02-04 16:58:09 +00:00
<unit>10</unit>
</binding>
2019-02-04 16:58:09 +00:00
<attachment>
<buffer>color</buffer>
<component>color0</component>
<multisample-samples>4</multisample-samples>
<multisample-color-samples>4</multisample-color-samples>
</attachment>
2019-02-04 16:58:09 +00:00
</pass>
2019-02-04 16:58:09 +00:00
<pass>
<name>display</name>
<type>quad</type>
<binding>
<buffer>color</buffer>
<unit>0</unit>
</binding>
2019-02-04 16:58:09 +00:00
</pass>
</PropertyList>