123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156 |
- <?xml version="1.0" encoding="UTF-8"?>
- <PropertyList>
- <name>crt</name>
- <inherits-from>Effects/model-default</inherits-from>
- <parameters>
- <!-- Dirt -->
- <texture n="4">
- <image>Aircraft/ec130/Models/Effects/dust.jpg</image>
- <type>2d</type>
- <filter>linear-mipmap-linear</filter>
- <wrap-s>clamp</wrap-s>
- <wrap-t>clamp</wrap-t>
- <internal-format>normalized</internal-format>
- </texture>
- <!-- Reflection environment -->
- <texture n="5">
- <type>cubemap</type>
- <images>
- <positive-x>Aircraft/ec130/Models/Effects/cubemaps/color/0004.png</positive-x>
- <negative-x>Aircraft/ec130/Models/Effects/cubemaps/color/0002.png</negative-x>
- <positive-y>Aircraft/ec130/Models/Effects/cubemaps/color/0001.png</positive-y>
- <negative-y>Aircraft/ec130/Models/Effects/cubemaps/color/0003.png</negative-y>
- <positive-z>Aircraft/ec130/Models/Effects/cubemaps/color/0006.png</positive-z>
- <negative-z>Aircraft/ec130/Models/Effects/cubemaps/color/0005.png</negative-z>
- </images>
- </texture>
- <texture n="6">
- <image>Aircraft/ec130/Models/Effects/scanlines.png</image>
- <type>2d</type>
- <filter>linear-mipmap-linear</filter>
- <wrap-s>repeat</wrap-s>
- <wrap-t>repeat</wrap-t>
- <internal-format>normalized</internal-format>
- </texture>
- <display-enabled type="int">
- <use>systems/electrical/volts</use>
- </display-enabled>
- <frame-factor type="float">0.98</frame-factor>>
- <distortion type="float">0.035</distortion>
- <flicker-factor type="float">0.09</flicker-factor>
- <view-y type="float"> <!-- views have different coordinate system -->
- <use>sim/current-view/x-offset-m</use>
- </view-y>
- </parameters>
- <technique n="5">
- <predicate>
- <and>
- <property>/sim/rendering/shaders/quality-level</property>
- <property>/sim/rendering/shaders/model</property>
- <or>
- <less-equal>
- <value type="float">2.0</value>
- <glversion />
- </less-equal>
- <and>
- <extension-supported>GL_ARB_shader_objects</extension-supported>
- <extension-supported>GL_ARB_shading_language_100</extension-supported>
- <extension-supported>GL_ARB_vertex_shader</extension-supported>
- <extension-supported>GL_ARB_fragment_shader</extension-supported>
- </and>
- </or>
- </and>
- </predicate>
- <pass>
- <!-- Base texture unit-->
- <texture-unit>
- <unit>0</unit>
- <type><use>texture[0]/type</use></type>
- <image><use>texture[0]/image</use></image>
- <filter><use>texture[0]/filter</use></filter>
- <wrap-s><use>texture[0]/wrap-s</use></wrap-s>
- <wrap-t><use>texture[0]/wrap-t</use></wrap-t>
- <internal-format><use>texture[0]/internal-format</use></internal-format>
- </texture-unit>
- <!-- Dirt texture unit-->
- <texture-unit>
- <unit>1</unit>
- <image><use>texture[4]/image</use></image>
- <type><use>texture[4]/type</use></type>
- <filter><use>texture[4]/filter</use></filter>
- <wrap-s><use>texture[4]/wrap-s</use></wrap-s>
- <wrap-t><use>texture[4]/wrap-t</use></wrap-t>
- <internal-format><use>texture[4]/internal-format</use></internal-format>
- </texture-unit>
- <!-- Reflection CubeMap texture unit-->
- <texture-unit>
- <unit>2</unit>
- <type><use>texture[5]/type</use></type>
- <images><use>texture[5]/images</use></images>
- </texture-unit>
- <!-- scanline texture unit-->
- <texture-unit>
- <unit>3</unit>
- <image><use>texture[6]/image</use></image>
- <type><use>texture[6]/type</use></type>
- <filter><use>texture[6]/filter</use></filter>
- <wrap-s><use>texture[6]/wrap-s</use></wrap-s>
- <wrap-t><use>texture[6]/wrap-t</use></wrap-t>
- <internal-format><use>texture[6]/internal-format</use></internal-format>
- </texture-unit>
- <program>
- <vertex-shader>Shaders/reflect.vert</vertex-shader>
- <fragment-shader>Aircraft/ec130/Models/Effects/crt.frag</fragment-shader>
- </program>
- <uniform>
- <name>BaseTex</name>
- <type>sampler-2d</type>
- <value type="int">0</value>
- </uniform>
- <uniform>
- <name>DirtTex</name>
- <type>sampler-2d</type>
- <value type="int">1</value>
- </uniform>
- <uniform>
- <name>Environment</name>
- <type>sampler-cube</type>
- <value type="int">2</value>
- </uniform>
- <uniform>
- <name>Scanlines</name>
- <type>sampler-2d</type>
- <value type="int">3</value>
- </uniform>
- <uniform>
- <name>display_enabled</name>
- <type>int</type>
- <value><use>display-enabled</use></value>
- </uniform>
- <uniform>
- <name>frame_factor</name>
- <type>float</type>
- <value><use>frame-factor</use></value>
- </uniform>
- <uniform>
- <name>distortion</name>
- <type>float</type>
- <value><use>distortion</use></value>
- </uniform>
- <uniform>
- <name>flicker_factor</name>
- <type>float</type>
- <value><use>flicker-factor</use></value>
- </uniform>
- <uniform>
- <name>view_y</name>
- <type>float</type>
- <value><use>view-y</use></value>
- </uniform>
- </pass>
- </technique>
- </PropertyList>
|