Make R22 flyable again,added shaders
[fg:toms-fgdata.git] / Aircraft / R22 / Models / Effects / skin-reflect.eff
1 <PropertyList>\r
2     <name>skin-reflect</name>\r
3     <inherits-from>Effects/model-combined</inherits-from>\r
4 \r
5     <parameters>\r
6         <!-- Normal Map \r
7         <normalmap_enabled type="int">0</normalmap_enabled>\r
8         <normalmap_dds type="int">0</normalmap_dds>\r
9         <texture n="2">\r
10             <image></image>\r
11         </texture>\r
12         -->\r
13         <!-- Light Map -->\r
14         <lightmap_enabled>\r
15             <use>sim/rendering/shaders/aircraft/lightmap/quality-level</use>\r
16         </lightmap_enabled>\r
17         <lightmap_multi type="int">0</lightmap_multi>\r
18         <lightmap_factor type="float" n="0"><use>/controls/lighting/beacon-light</use></lightmap_factor>\r
19         <lightmap_color type="vec3d" n="0">0.95 0.08 0.05</lightmap_color>\r
20         <lightmap_factor type="float" n="1">0.0</lightmap_factor>\r
21         <lightmap_color type="vec3d" n="1"> 0.0 1.0 0.0 </lightmap_color>\r
22         <lightmap_factor type="float" n="2">0.0</lightmap_factor>\r
23         <lightmap_color type="vec3d" n="2">0.0 0.0 1.0 </lightmap_color>\r
24         <lightmap_factor type="float" n="3">0.0</lightmap_factor>\r
25         <lightmap_color type="vec3d" n="3">0.0 0.0 0.0 </lightmap_color>\r
26         <texture n="3">\r
27             <image>Aircraft/R22/Models/Effects/lightmap.png</image>\r
28             <filter>linear-mipmap-linear</filter>\r
29             <wrap-s>clamp</wrap-s>\r
30             <wrap-t>clamp</wrap-t>\r
31             <internal-format>normalized</internal-format>\r
32         </texture>\r
33 \r
34         <!-- Reflection environment -->\r
35         <texture n="4">\r
36             <image>Aircraft/R22/Models/Effects/reflect.png</image>\r
37             <filter>linear-mipmap-linear</filter>\r
38             <wrap-s>repeat</wrap-s>\r
39             <wrap-t>repeat</wrap-t>\r
40             <internal-format>normalized</internal-format>\r
41         </texture>\r
42 \r
43         <texture n="5">\r
44             <type>cubemap</type>\r
45             <images>\r
46                 <positive-x>Aircraft/Generic/Effects/CubeMaps/fgfs-sky/1.png</positive-x>\r
47                 <negative-x>Aircraft/Generic/Effects/CubeMaps/fgfs-sky/4.png</negative-x>\r
48                 <positive-y>Aircraft/Generic/Effects/CubeMaps/fgfs-sky/2.png</positive-y>\r
49                 <negative-y>Aircraft/Generic/Effects/CubeMaps/fgfs-sky/3.png</negative-y>\r
50                 <positive-z>Aircraft/Generic/Effects/CubeMaps/fgfs-sky/6.png</positive-z>\r
51                 <negative-z>Aircraft/Generic/Effects/CubeMaps/fgfs-sky/5.png</negative-z>\r
52             </images>\r
53         </texture>\r
54 \r
55         <!-- Reflection -->\r
56         <reflection_enabled type="int">1</reflection_enabled>\r
57         <reflect_map_enabled type="int">1</reflect_map_enabled>\r
58         <reflection_dynamic type="int">1</reflection_dynamic>\r
59         <reflection_fresnel type="float">0.1</reflection_fresnel>\r
60         <reflection_rainbow type="float">0.05</reflection_rainbow>\r
61         <reflection_noise type="float">0.1</reflection_noise>\r
62         <reflection_correction type="float">0.05</reflection_correction>\r
63         <ambient_correction type="float">0.2</ambient_correction>\r
64 \r
65         <!-- quality slider -->\r
66         <shader_quality>\r
67         <use>/sim/rendering/shaders/aircraft/reflection/quality-level</use>\r
68         </shader_quality>\r
69         <vertex-program-two-side type="bool">false</vertex-program-two-side>\r
70         <cull-face>back</cull-face>\r
71     </parameters>\r
72 \r
73     <!-- ####################\r
74 ### NORMALMAP INCLUDE ###\r
75 ######################### -->\r
76     <generate>\r
77         <tangent type="int">6</tangent>\r
78         <binormal type="int">7</binormal>\r
79     </generate>\r
80 \r
81     <technique n="10">\r
82         <pass>\r
83             <program>\r
84                 <attribute>\r
85                     <name>tangent</name>\r
86                     <index>6</index>\r
87                 </attribute>\r
88                 <attribute>\r
89                     <name>binormal</name>\r
90                     <index>7</index>\r
91                 </attribute>\r
92             </program>\r
93         </pass>\r
94     </technique>\r
95     <!-- ########################\r
96 ### END NORMALMAP INCLUDE ###\r
97 ############################# -->\r
98 \r
99 </PropertyList>\r