85 lines
2.1 KiB
XML
85 lines
2.1 KiB
XML
<?xml version='1.0' encoding='UTF-8'?>
|
|
<PropertyList>
|
|
<name>Effects/projection-2d</name>
|
|
<parameters>
|
|
<hfov><use>/sim/current-view/field-of-view</use></hfov>
|
|
<vfov>180</vfov><!-- TODO add parameter -->
|
|
<auto_vfov>1</auto_vfov><!-- TODO add parameter -->
|
|
<enable_overlay>1</enable_overlay>
|
|
<!--enable_overlay><use>/surround/enable-overlay</use></enable_overlay-->
|
|
<rot_x><use>/sim/current-view/raw-orientation[0]</use></rot_x>
|
|
<rot_y><use>/sim/current-view/raw-orientation[1]</use></rot_y>
|
|
<rot_z><use>/sim/current-view/raw-orientation[2]</use></rot_z>
|
|
<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>
|
|
<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>
|
|
</pass>
|
|
</technique>
|
|
</PropertyList>
|