Major update: fixed fdm-bug (thanks to LesterBoffo!), added tutorials, added replayre...
[fg:toms-fgdata.git] / Aircraft / ec130 / Models / Effects / ec130reflect-uber.eff
1 <?xml version="1.0" encoding="utf-8"?>\r
2 \r
3 <PropertyList>\r
4         <name>ec130reflect-uber</name>\r
5         <inherits-from>Effects/model-combined</inherits-from>\r
6 \r
7         <parameters>\r
8                 <!-- Normal Map -->\r
9                 <normalmap_enabled type="int">1</normalmap_enabled>\r
10                 <normalmap_dds type="int">0</normalmap_dds>\r
11                 <texture n="2">\r
12                         <image>Aircraft/EC130/Models/Effects/bumpmap.png</image>\r
13                 </texture>\r
14 \r
15                 <!-- Reflection environment -->\r
16                 <texture n="4">\r
17                         <image>Aircraft/ec130/Models/Effects/greymap.png</image>\r
18                         <filter>linear-mipmap-linear</filter>\r
19                         <wrap-s>repeat</wrap-s>\r
20                         <wrap-t>repeat</wrap-t>\r
21                         <internal-format>normalized</internal-format>\r
22                 </texture>\r
23 \r
24                 <texture n="5">\r
25                         <type>cubemap</type>\r
26                         <images>\r
27                                 <positive-x>Aircraft/Generic/Effects/CubeMaps/real.blue-sky/fair-sky_px.png</positive-x>\r
28                                 <negative-x>Aircraft/Generic/Effects/CubeMaps/real.blue-sky/fair-sky_nx.png</negative-x>\r
29                                 <positive-y>Aircraft/Generic/Effects/CubeMaps/real.blue-sky/fair-sky_py.png</positive-y>\r
30                                 <negative-y>Aircraft/Generic/Effects/CubeMaps/real.blue-sky/fair-sky_ny.png</negative-y>\r
31                                 <positive-z>Aircraft/Generic/Effects/CubeMaps/real.blue-sky/fair-sky_pz.png</positive-z>\r
32                                 <negative-z>Aircraft/Generic/Effects/CubeMaps/real.blue-sky/fair-sky_nz.png</negative-z>\r
33                         </images>\r
34                 </texture>\r
35 <!-- Light Map -->\r
36                 <lightmap_enabled type="int">1</lightmap_enabled>\r
37                 <lightmap_multi type="int">1</lightmap_multi>\r
38                 <lightmap_factor type="float" n="0"><use>/sim/model/ec130/lighting/beacon-top/state</use></lightmap_factor>\r
39                 <lightmap_color type="vec3d" n="0"> 1.0 0.0 0.0 </lightmap_color>\r
40                 <lightmap_factor type="float" n="1"><use>/systems/electrical/outputs/nav-lights</use></lightmap_factor>\r
41                 <lightmap_color type="vec3d" n="1"> 1.0 1.0 1.0 </lightmap_color>\r
42                 <lightmap_factor type="float" n="2"><use>/systems/electrical/outputs/landing-light</use></lightmap_factor>\r
43                 <lightmap_color type="vec3d" n="2">1.0 1.0 1.0 </lightmap_color>\r
44                 <lightmap_factor type="float" n="3">0.0</lightmap_factor>\r
45                 <lightmap_color type="vec3d" n="3">1.0 0.0 0.0 </lightmap_color>\r
46                 <texture n="3">\r
47                         <image>Aircraft/ec130/Models/Effects/Lightmaps.png</image>\r
48                         <filter>linear-mipmap-linear</filter>\r
49                         <wrap-s>clamp</wrap-s>\r
50                         <wrap-t>clamp</wrap-t>\r
51                         <internal-format>normalized</internal-format>\r
52                 </texture>\r
53                 <!-- Reflection -->\r
54                 <reflection_enabled type="int">1</reflection_enabled>\r
55                 <reflect_map_enabled type="int">1</reflect_map_enabled>\r
56                 <reflection_dynamic type="int">1</reflection_dynamic>\r
57                 <reflection_fresnel type="float">0.01</reflection_fresnel>\r
58                 <reflection_rainbow type="float">0.01</reflection_rainbow>\r
59                 <reflection_noise type="float">0.01</reflection_noise>\r
60                 <reflection_correction type="float"><use>/sim/rendering/refl_correction</use></reflection_correction>\r
61                 <!--<reflection_correction>\r
62                         <use>/sim/rendering/refl_correction</use>\r
63                 </reflection_correction>-->\r
64                 <ambient_correction type="float">0.0</ambient_correction>\r
65 \r
66                 <!--            quality slider -->\r
67                 <shader_quality type="int">2</shader_quality>\r
68                 <!--<use>/sim/rendering/shaders/model/quality</use>\r
69                 </shader_quality>-->\r
70                 <vertex-program-two-side type="bool">false</vertex-program-two-side>\r
71                 <cull-face>back</cull-face>\r
72         </parameters>\r
73 \r
74         <!-- ####################\r
75 ### NORMALMAP INCLUDE ###\r
76 ######################### -->\r
77         <generate>\r
78                 <tangent type="int">6</tangent>\r
79                 <binormal type="int">7</binormal>\r
80         </generate>\r
81 \r
82         <technique n="10">\r
83                 <pass>\r
84                         <program>\r
85                                 <attribute>\r
86                                         <name>tangent</name>\r
87                                         <index>6</index>\r
88                                 </attribute>\r
89                                 <attribute>\r
90                                         <name>binormal</name>\r
91                                         <index>7</index>\r
92                                 </attribute>\r
93                         </program>\r
94                 </pass>\r
95         </technique>\r
96         <!-- ########################\r
97 ### END NORMALMAP INCLUDE ###\r
98 ############################# -->\r
99 \r
100 </PropertyList>\r
101 \r