Debian Codegraph @

Effects/building.eff

raw
1 <?xml version="1.0" encoding="utf-8"?>
2 <PropertyList>
3 <name>Effects/building</name>
4 <inherits-from>Effects/model-combined</inherits-from>
5 <parameters>
6 <texture n="0">
7 <type>2d</type>
8 <image>Textures/Buildings/buildings.png</image>
9 <filter>linear-mipmap-linear</filter>
10 <wrap-s>repeat</wrap-s>
11 <wrap-t>clamp</wrap-t>
12 <internal-format>normalized</internal-format>
13 </texture>
14 <!-- Normal Map -->
15 <normalmap-enabled type="int"> 0 </normalmap-enabled>
16 <normalmap-dds type="int"> 0 </normalmap-dds>
17 <normalmap-tiling type="float"> 1.0 </normalmap-tiling>
18 <texture n="2">
19 <image>Textures/Buildings/buildings-normalmap.png</image>
20 <type>2d</type>
21 <filter>linear-mipmap-linear</filter>
22 <wrap-s>repeat</wrap-s>
23 <wrap-t>clamp</wrap-t>
24 <internal-format>normalized</internal-format>
25 </texture>
26 <!-- Light Map -->
27 <texture n="3">
28 <image>Textures/Buildings/buildings-lightmap.png</image>
29 <type>2d</type>
30 <filter>linear-mipmap-linear</filter>
31 <wrap-s>clamp</wrap-s>
32 <wrap-t>clamp</wrap-t>
33 <internal-format>normalized</internal-format>
34 </texture>
35 <lightmap-enabled type="int"> 1 </lightmap-enabled>
36 <lightmap-multi type="int"> 0 </lightmap-multi>
37 <lightmap-factor type="float" n="0">
38 <use>/environment/lightmap-factor</use>
39 </lightmap-factor>
40 <lightmap-color type="vec3d" n="0">1 1 1</lightmap-color>
41
42 <texture n="4">
43 <image>Textures/Buildings/buildings-reflectionmap.png</image>
44 <type>2d</type>
45 <filter>linear-mipmap-linear</filter>
46 <wrap-s>clamp</wrap-s>
47 <wrap-t>clamp</wrap-t>
48 <internal-format>normalized</internal-format>
49 </texture>
50
51 <!-- Reflection -->
52 <reflection-enabled type="int">1</reflection-enabled>
53 <reflect-map-enabled type="int">1</reflect-map-enabled>
54 <reflection-correction type="float">0</reflection-correction>
55 <reflection-dynamic type="int">1</reflection-dynamic>
56 <reflection-fresnel type="float">0.1</reflection-fresnel>
57 <reflection-rainbow type="float">0.1</reflection-rainbow>
58 <reflection-noise type="float">0.0</reflection-noise>
59 <texture n= "5" >
60 <type>cubemap</type>
61 <images>
62 <positive-x>Aircraft/Generic/Effects/CubeMaps/buildings/N.png</positive-x>
63 <negative-x>Aircraft/Generic/Effects/CubeMaps/buildings/S.png</negative-x>
64 <positive-y>Aircraft/Generic/Effects/CubeMaps/buildings/W.png</positive-y>
65 <negative-y>Aircraft/Generic/Effects/CubeMaps/buildings/E.png</negative-y>
66 <positive-z>Aircraft/Generic/Effects/CubeMaps/buildings/U.png</positive-z>
67 <negative-z>Aircraft/Generic/Effects/CubeMaps/buildings/D.png</negative-z>
68 </images>
69 </texture>
70 <texture n="6">
71 <!-- instance information from shader -->
72 <type>2d</type>
73 <wrap-s>clamp</wrap-s>
74 <wrap-t>clamp</wrap-t>
75 </texture>
76 <!-- Add the following line to enable snow: -->
77 <snow-enabled>1</snow-enabled>
78 <!--Ambient correction -->
79 <ambient-correction type="float"> 0.05 </ambient-correction>
80 <material>
81 <active>true</active>
82 <color-mode-uniform>1</color-mode-uniform>
83 <ambient type="vec4d">1.0 1.0 1.0 1.0</ambient>
84 <diffuse type="vec4d">1.0 1.0 1.0 1.0</diffuse>
85 <specular type="vec4d">0.0 0.0 0.0 1.0</specular>
86 <emissive type="vec4d">0.02 0.02 0.02 1.0</emissive>
87 <shininess>0.1</shininess>
88 <color-mode>ambient-and-diffuse</color-mode>
89 <color-mode-uniform>ambient-and-diffuse</color-mode-uniform>
90 <!-- DIFFUSE -->
91 </material>
92 <material-id>0</material-id>
93 <blend>
94 <active>0</active>
95 <source>0</source>
96 <destination>0</destination>
97 </blend>
98 <shade-model>flat</shade-model>
99 <cull-face>back</cull-face>
100 <building-flag type="int">1</building-flag>
101 </parameters>
102
103 <technique n="4">
104 <!-- Atmospheric scattering technique with model shader-->
105 <pass>
106 <program>
107 <vertex-shader n="0">Shaders/building-model-ALS-ultra.vert</vertex-shader>
108 <attribute>
109 <name>instancePosition</name>
110 <index>6</index>
111 </attribute>
112 <attribute>
113 <name>instanceScale</name>
114 <index>7</index>
115 </attribute>
116 <attribute>
117 <name>attrib1</name>
118 <index>10</index>
119 </attribute>
120 <attribute>
121 <name>attrib2</name>
122 <index>11</index>
123 </attribute>
124 </program>
125 </pass>
126 </technique>
127
128 <technique n="5">
129 <!-- Base Atmospheric scattering technique -->
130 <pass>
131 <program>
132 <vertex-shader n="0">Shaders/building-ALS.vert</vertex-shader>
133 <attribute>
134 <name>instancePosition</name>
135 <index>6</index>
136 </attribute>
137 <attribute>
138 <name>instanceScale</name>
139 <index>7</index>
140 </attribute>
141 <attribute>
142 <name>attrib1</name>
143 <index>10</index>
144 </attribute>
145 <attribute>
146 <name>attrib2</name>
147 <index>11</index>
148 </attribute>
149 </program>
150 </pass>
151 </technique>
152
153 <technique n="11">
154 <pass>
155 <program n="0">
156 <vertex-shader n="1">Shaders/building-default.vert</vertex-shader>
157 <attribute>
158 <name>instancePosition</name>
159 <index>6</index>
160 </attribute>
161 <attribute>
162 <name>instanceScale</name>
163 <index>7</index>
164 </attribute>
165 <attribute>
166 <name>attrib1</name>
167 <index>10</index>
168 </attribute>
169 <attribute>
170 <name>attrib2</name>
171 <index>11</index>
172 </attribute>
173 </program>
174 </pass>
175 </technique>
176
177 </PropertyList>