1
0
Fork 0
fgdata/Effects/projection.eff
fly 399ac94ec3 Test orientation change
Signed-off-by: fly <merspieler@airmail.cc>
2021-12-11 21:37:22 +01:00

87 lines
2.2 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><use>/surround/vfov</use></vfov>
<auto_vfov><use>/surround/auto-vfov</use></auto_vfov>
<enable_overlay><use>/surround/enable-overlay</use></enable_overlay>
<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>
<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>