Merge branch 'master' of gitorious.org:fg/fgdata into work
[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