1
0
Fork 0
fgdata/Effects/projection-2d.eff
fly ad55c1d2df Merge next for changed Compositor layout
Signed-off-by: fly <merspieler@airmail.cc>
2020-11-17 02:04:45 +11:00

44 lines
1,002 B
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>
<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-2d.frag</fragment-shader>
</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>