2020-11-11 17:16:58 +00:00
|
|
|
<?xml version='1.0' encoding='UTF-8'?>
|
|
|
|
<PropertyList>
|
2020-11-16 15:04:45 +00:00
|
|
|
<name>Effects/projection-2d</name>
|
2020-11-11 17:16:58 +00:00
|
|
|
<parameters>
|
|
|
|
<hfov><use>/sim/current-view/field-of-view</use></hfov>
|
|
|
|
<display_xsize>
|
|
|
|
<use>/sim/startup/xsize</use>
|
|
|
|
</display_xsize>
|
|
|
|
<display_ysize>
|
|
|
|
<use>/sim/startup/ysize</use>
|
|
|
|
</display_ysize>
|
|
|
|
</parameters>
|
|
|
|
<technique n="1">
|
|
|
|
<pass>
|
|
|
|
<program>
|
2020-11-16 15:04:45 +00:00
|
|
|
<fragment-shader>Shaders/projection-2d.frag</fragment-shader>
|
2020-11-11 17:16:58 +00:00
|
|
|
</program>
|
|
|
|
<texture-unit>
|
|
|
|
<unit>2</unit>
|
|
|
|
<type>2d</type>
|
|
|
|
</texture-unit>
|
|
|
|
<uniform>
|
|
|
|
<name>display_x</name>
|
|
|
|
<type>int</type>
|
|
|
|
<value><use>display_xsize</use></value>
|
|
|
|
</uniform>
|
|
|
|
<uniform>
|
|
|
|
<name>display_y</name>
|
|
|
|
<type>int</type>
|
|
|
|
<value><use>display_ysize</use></value>
|
|
|
|
</uniform>
|
|
|
|
<uniform>
|
|
|
|
<name>hfov</name>
|
|
|
|
<type>float</type>
|
|
|
|
<value><use>hfov</use></value>
|
|
|
|
</uniform>
|
|
|
|
<uniform>
|
|
|
|
<name>iChannel0</name>
|
|
|
|
<type>sampler-2d</type>
|
|
|
|
<value>2</value>
|
|
|
|
</uniform>
|
|
|
|
</pass>
|
|
|
|
</technique>
|
|
|
|
</PropertyList>
|