1
0
Fork 0
fgdata/Compositor/Effects/projection-2d.eff

45 lines
1 KiB
Text
Raw Normal View History

<?xml version='1.0' encoding='UTF-8'?>
<PropertyList>
<name>Effects/Compositor/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>Compositor/Shaders/ALS/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>