2020-11-16 15:07:12 +00:00
|
|
|
<?xml version='1.0' encoding='UTF-8'?>
|
|
|
|
<PropertyList>
|
|
|
|
<name>Effects/projection-2d</name>
|
|
|
|
<parameters>
|
|
|
|
<hfov><use>/sim/current-view/field-of-view</use></hfov>
|
2021-08-29 15:09:39 +00:00
|
|
|
<vfov><use>/surround/vfov</use></vfov>
|
|
|
|
<auto_vfov><use>/surround/auto-vfov</use></auto_vfov>
|
2021-08-18 11:07:33 +00:00
|
|
|
<enable_overlay><use>/surround/enable-overlay</use></enable_overlay>
|
2021-09-02 18:30:42 +00:00
|
|
|
<rot_x><use>/surround/testx</use></rot_x>
|
|
|
|
<rot_y><use>/surround/testy</use></rot_y>
|
|
|
|
<rot_z><use>/surround/testz</use></rot_z>
|
|
|
|
<!--rot_x><use>/sim/current-view/raw-orientation[1]</use></rot_x>
|
2021-08-14 13:43:01 +00:00
|
|
|
<rot_y><use>/sim/current-view/raw-orientation[1]</use></rot_y>
|
2021-09-02 18:30:42 +00:00
|
|
|
<rot_z><use>/sim/current-view/raw-orientation[2]</use></rot_z-->
|
2020-11-16 15:07:12 +00:00
|
|
|
<display_xsize>
|
|
|
|
<use>/sim/startup/xsize</use>
|
|
|
|
</display_xsize>
|
|
|
|
<display_ysize>
|
|
|
|
<use>/sim/startup/ysize</use>
|
|
|
|
</display_ysize>
|
|
|
|
</parameters>
|
|
|
|
<technique n="1">
|
|
|
|
<pass>
|
|
|
|
<program>
|
|
|
|
<fragment-shader>Shaders/projection.frag</fragment-shader>
|
|
|
|
</program>
|
|
|
|
<!--texture-unit>
|
|
|
|
<unit>2</unit>
|
|
|
|
<type>cubemap</type>
|
|
|
|
</texture-unit-->
|
|
|
|
<texture-unit>
|
|
|
|
<unit>2</unit>
|
|
|
|
<type>cubemap</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>i_vfov</name>
|
|
|
|
<type>float</type>
|
|
|
|
<value><use>vfov</use></value>
|
|
|
|
</uniform>
|
|
|
|
<uniform>
|
|
|
|
<name>auto_vfov</name>
|
|
|
|
<type>int</type>
|
|
|
|
<value><use>auto_vfov</use></value>
|
|
|
|
</uniform>
|
|
|
|
<uniform>
|
|
|
|
<name>enable_overlay</name>
|
|
|
|
<type>int</type>
|
|
|
|
<value><use>enable_overlay</use></value>
|
|
|
|
</uniform>
|
|
|
|
<uniform>
|
|
|
|
<name>iChannel0</name>
|
|
|
|
<type>sampler-cube</type>
|
|
|
|
<value>2</value>
|
|
|
|
</uniform>
|
2021-08-14 13:43:01 +00:00
|
|
|
<uniform>
|
|
|
|
<name>i_rot_x</name>
|
|
|
|
<type>float</type>
|
|
|
|
<value><use>rot_x</use></value>
|
|
|
|
</uniform>
|
|
|
|
<uniform>
|
|
|
|
<name>i_rot_y</name>
|
|
|
|
<type>float</type>
|
|
|
|
<value><use>rot_y</use></value>
|
|
|
|
</uniform>
|
|
|
|
<uniform>
|
|
|
|
<name>i_rot_z</name>
|
|
|
|
<type>float</type>
|
|
|
|
<value><use>rot_z</use></value>
|
|
|
|
</uniform>
|
2020-11-16 15:07:12 +00:00
|
|
|
</pass>
|
|
|
|
</technique>
|
|
|
|
</PropertyList>
|