Effects/model-default.eff move skydome to technique 5 to provide more headroom
[fg:toms-fgdata.git] / Docs / model-combined.eff / model-combined-bump.eff
1 <?xml version="1.0" encoding="utf-8"?>
2 <!--WARNING: DO NOT USE ON UNTEXTURED OBJECTS -->
3 <!--This effect file is provided as a conveniency for usage with a normalmap.
4                 Do not use as is.
5                 Please edit.
6                 Remove unnedeed settings.
7                 WARNING: do not remove the Normalmap include at the end-->
8 <PropertyList>
9                 <name><!--my/effect/name--></name>
10     <inherits-from>Effects/model-combined</inherits-from>
11                 <parameters>
12                 <!-- Normal Map -->
13                         <normalmap-enabled type="int"> 1 </normalmap-enabled>
14                         <normalmap-dds type="int"> 0 </normalmap-dds>
15                         <normalmap-tiling type="float"> 1.0 </normalmap-tiling>
16                         <texture n="2">
17                                 <image><!--path/to/normalmap/texture--></image>
18                         </texture>
19                 <!-- Light Map -->
20                         <lightmap-enabled type="int"> 0 </lightmap-enabled>
21                         <lightmap-multi type="int"> 0 </lightmap-multi>
22                         <lightmap-factor type="float" n="0">1.0</lightmap-factor>
23                         <lightmap-color type="vec3d" n="0"> 1.0 1.0 1.0 </lightmap-color>
24                         <lightmap-factor type="float" n="1">1.0</lightmap-factor>
25                         <lightmap-color type="vec3d" n="1"> 1.0 1.0 1.0 </lightmap-color>
26                         <lightmap-factor type="float" n="2">1.0</lightmap-factor>
27                         <lightmap-color type="vec3d" n="2"> 1.0 1.0 1.0 </lightmap-color>
28                         <lightmap-factor type="float" n="3">1.0</lightmap-factor>
29                         <lightmap-color type="vec3d" n="3"> 1.0 1.0 1.0 </lightmap-color>
30                         <texture n="3">
31                                 <image><!--path/to/lightmap/image--></image>
32                                 <filter>linear-mipmap-linear</filter>
33                                 <wrap-s>clamp</wrap-s>
34                                 <wrap-t>clamp</wrap-t>
35                                 <internal-format>normalized</internal-format>
36                         </texture>
37                 <!-- Reflection -->
38                         <reflection-enabled type="int"> 0 </reflection-enabled>
39                         <reflect-map-enabled type="int"> 0 </reflect-map-enabled>
40                         <reflection-correction type="float"> 0.0 </reflection-correction>
41                         <reflection-dynamic type="int"> 0 </reflection-dynamic>
42                         <texture n="4">
43                                 <image><!--path/to/reflectmap/texture--></image>
44                         </texture>
45                         <texture n="5">
46                                 <type>cubemap</type>
47                                 <!-- use this form for a cube cross -->
48                                 <!--<image>Aircraft/Generic/Effects/CubeCrosses/blue_sky_big.jpg</image>-->
49                                 <!-- END CubeCross -->
50                                 <!-- use this form for a 6 image cube map -->
51                                 <images>
52                                         <positive-x>Aircraft/Generic/Effects/CubeMaps/fair-sky/fair-sky_px.png</positive-x>
53                                         <negative-x>Aircraft/Generic/Effects/CubeMaps/fair-sky/fair-sky_nx.png</negative-x>
54                                         <positive-y>Aircraft/Generic/Effects/CubeMaps/fair-sky/fair-sky_py.png</positive-y>
55                                         <negative-y>Aircraft/Generic/Effects/CubeMaps/fair-sky/fair-sky_ny.png</negative-y>
56                                         <positive-z>Aircraft/Generic/Effects/CubeMaps/fair-sky/fair-sky_pz.png</positive-z>
57                                         <negative-z>Aircraft/Generic/Effects/CubeMaps/fair-sky/fair-sky_nz.png</negative-z>
58                                 </images>
59                                 <!-- END 6 image cube map -->
60                         </texture>
61
62                         <reflection-fresnel type="float"> 0.0 </reflection-fresnel>
63                         <reflection-rainbow type="float"> 0.0 </reflection-rainbow>
64                         <reflection-noise type="float"> 0.0 </reflection-noise>
65                         <ambient-correction type="float"> 0.0 </ambient-correction>
66                         <dirt-enabled type="int"> 0 </dirt-enabled>
67                         <dirt-color type="vec3d"> 0.0 0.0 0.0 </dirt-color>
68                         <dirt-factor type="float"> 0.0 </dirt-factor>
69                 </parameters>
70
71 <!--WARNING: Do not edit below this line -->
72 <!-- ####################
73 ### NORMALMAP INCLUDE ###
74 ######################### -->
75                 <generate>
76                         <tangent type="int">6</tangent>
77                         <binormal type="int">7</binormal>
78                 </generate>
79
80                 <technique n="8">
81                         <pass>
82                                 <program>
83                                         <attribute>
84                                                 <name>tangent</name>
85                                                 <index>6</index>
86                                         </attribute>
87                                         <attribute>
88                                                 <name>binormal</name>
89                                                 <index>7</index>
90                                         </attribute>
91                                 </program>
92                         </pass>
93                 </technique>
94
95                 <technique n="9">
96                   <pass>
97                         <program>
98                           <attribute>
99                                 <name>tangent</name>
100                                 <index>6</index>
101                           </attribute>
102                           <attribute>
103                                 <name>binormal</name>
104                                 <index>7</index>
105                           </attribute>
106                         </program>
107                   </pass>
108                 </technique>
109 <!-- ########################
110 ### END NORMALMAP INCLUDE ###
111 ############################# -->
112 </PropertyList>