1 |
|
---|
2 | material EnvMetals/Copper
|
---|
3 | {
|
---|
4 |
|
---|
5 | technique
|
---|
6 | {
|
---|
7 | pass
|
---|
8 | {
|
---|
9 | IllumTechniques
|
---|
10 | {
|
---|
11 | RenderTechnique ColorCubeMap
|
---|
12 | {
|
---|
13 | update_interval 0
|
---|
14 | distance_calc true 1.5
|
---|
15 | face_angle_calc true 1.5
|
---|
16 | }
|
---|
17 | RenderTechnique DistanceCubeMap
|
---|
18 | {
|
---|
19 | update_interval 0
|
---|
20 | distance_calc true 1.5
|
---|
21 | face_angle_calc true 1.5
|
---|
22 | }
|
---|
23 |
|
---|
24 | }
|
---|
25 | vertex_program_ref GameTools/CubeMap/VertexPrograms/LocalizedVS
|
---|
26 | {
|
---|
27 | param_named_auto worldViewProj worldviewproj_matrix
|
---|
28 | param_named_auto world world_matrix
|
---|
29 |
|
---|
30 | }
|
---|
31 | fragment_program_ref GameTools/CubeMap/FragmentPrograms/LocalizedMetalPS
|
---|
32 | {
|
---|
33 | param_named_auto cameraPos camera_position
|
---|
34 | //param_named n float3 0.21 0.96 1.17
|
---|
35 | //param_named k float3 4.16 2.57 2.32
|
---|
36 | param_named F0 float3 0.95 0.63 0.54
|
---|
37 | param_named_auto lightPosition light_position 0
|
---|
38 |
|
---|
39 | }
|
---|
40 |
|
---|
41 | //Cube map for reflections and refractions
|
---|
42 | texture_unit
|
---|
43 | {
|
---|
44 | cubic_texture cubemap.jpg combinedUVW
|
---|
45 | tex_address_mode clamp
|
---|
46 | colour_op replace
|
---|
47 | }
|
---|
48 |
|
---|
49 | //Cube map of distances
|
---|
50 | texture_unit
|
---|
51 | {
|
---|
52 | cubic_texture cubemap.jpg combinedUVW
|
---|
53 | tex_address_mode clamp
|
---|
54 | colour_op replace
|
---|
55 | }
|
---|
56 | }
|
---|
57 | }
|
---|
58 | }
|
---|
59 |
|
---|
60 |
|
---|
61 | material EnvMetals/Gold
|
---|
62 | {
|
---|
63 |
|
---|
64 | technique
|
---|
65 | {
|
---|
66 | pass
|
---|
67 | {
|
---|
68 |
|
---|
69 | IllumTechniques
|
---|
70 | {
|
---|
71 | RenderTechnique ColorCubeMap
|
---|
72 | {
|
---|
73 | update_interval 0
|
---|
74 | distance_calc true 1.5
|
---|
75 | face_angle_calc true 1.5
|
---|
76 | }
|
---|
77 | RenderTechnique DistanceCubeMap
|
---|
78 | {
|
---|
79 | update_interval 0
|
---|
80 | distance_calc true 1.5
|
---|
81 | face_angle_calc true 1.5
|
---|
82 | }
|
---|
83 |
|
---|
84 | }
|
---|
85 | vertex_program_ref GameTools/CubeMap/VertexPrograms/LocalizedVS
|
---|
86 | {
|
---|
87 | param_named_auto worldViewProj worldviewproj_matrix
|
---|
88 | param_named_auto world world_matrix
|
---|
89 |
|
---|
90 | }
|
---|
91 | fragment_program_ref GameTools/CubeMap/FragmentPrograms/LocalizedMetalPS
|
---|
92 | {
|
---|
93 | param_named_auto cameraPos camera_position
|
---|
94 | //param_named n float3 0.16 0.35 1.6
|
---|
95 | //param_named k float3 3.98 2.71 1.92
|
---|
96 | param_named F0 float3 0.96 0.85 0.39
|
---|
97 | param_named_auto lightPosition light_position 0
|
---|
98 |
|
---|
99 | }
|
---|
100 |
|
---|
101 | //Cube map for reflections and refractions
|
---|
102 | texture_unit
|
---|
103 | {
|
---|
104 | cubic_texture cubemap.jpg combinedUVW
|
---|
105 | tex_address_mode clamp
|
---|
106 | colour_op replace
|
---|
107 | }
|
---|
108 |
|
---|
109 | //Cube map of distances
|
---|
110 | texture_unit
|
---|
111 | {
|
---|
112 | cubic_texture cubemap.jpg combinedUVW
|
---|
113 | tex_address_mode clamp
|
---|
114 | colour_op replace
|
---|
115 | }
|
---|
116 |
|
---|
117 |
|
---|
118 | }
|
---|
119 | }
|
---|
120 | }
|
---|
121 |
|
---|
122 |
|
---|
123 | material EnvMetals/Silver
|
---|
124 | {
|
---|
125 |
|
---|
126 | technique
|
---|
127 | {
|
---|
128 | pass
|
---|
129 | {
|
---|
130 |
|
---|
131 | IllumTechniques
|
---|
132 | {
|
---|
133 | RenderTechnique ColorCubeMap
|
---|
134 | {
|
---|
135 | update_interval 0
|
---|
136 | distance_calc true 1.5
|
---|
137 | face_angle_calc true 1.5
|
---|
138 | }
|
---|
139 | RenderTechnique DistanceCubeMap
|
---|
140 | {
|
---|
141 | update_interval 0
|
---|
142 | distance_calc true 1.5
|
---|
143 | face_angle_calc true 1.5
|
---|
144 | }
|
---|
145 |
|
---|
146 | }
|
---|
147 | vertex_program_ref GameTools/CubeMap/VertexPrograms/LocalizedVS
|
---|
148 | {
|
---|
149 | param_named_auto worldViewProj worldviewproj_matrix
|
---|
150 | param_named_auto world world_matrix
|
---|
151 |
|
---|
152 | }
|
---|
153 | fragment_program_ref GameTools/CubeMap/FragmentPrograms/LocalizedMetalPS
|
---|
154 | {
|
---|
155 | param_named_auto cameraPos camera_position
|
---|
156 | //param_named n float3 0.142 0.124 0.158
|
---|
157 | //param_named k float3 4.52 3.33 2.32
|
---|
158 | param_named F0 float3 0.97 0.95 0.9
|
---|
159 | param_named_auto lightPosition light_position 0
|
---|
160 |
|
---|
161 | }
|
---|
162 |
|
---|
163 | //Cube map for reflections and refractions
|
---|
164 | texture_unit
|
---|
165 | {
|
---|
166 | cubic_texture cubemap.jpg combinedUVW
|
---|
167 | tex_address_mode clamp
|
---|
168 | colour_op replace
|
---|
169 | }
|
---|
170 |
|
---|
171 | //Cube map of distances
|
---|
172 | texture_unit
|
---|
173 | {
|
---|
174 | cubic_texture cubemap.jpg combinedUVW
|
---|
175 | tex_address_mode clamp
|
---|
176 | colour_op replace
|
---|
177 | }
|
---|
178 |
|
---|
179 |
|
---|
180 | }
|
---|
181 | }
|
---|
182 | }
|
---|
183 |
|
---|
184 |
|
---|
185 | material EnvMetals/Alu
|
---|
186 | {
|
---|
187 |
|
---|
188 | technique
|
---|
189 | {
|
---|
190 | pass
|
---|
191 | {
|
---|
192 |
|
---|
193 | IllumTechniques
|
---|
194 | {
|
---|
195 | RenderTechnique ColorCubeMap
|
---|
196 | {
|
---|
197 | update_interval 0
|
---|
198 | distance_calc true 1.5
|
---|
199 | face_angle_calc true 3.5
|
---|
200 | }
|
---|
201 | RenderTechnique DistanceCubeMap
|
---|
202 | {
|
---|
203 | update_interval 0
|
---|
204 | distance_calc true 1.5
|
---|
205 | face_angle_calc true 3.5
|
---|
206 | }
|
---|
207 |
|
---|
208 | }
|
---|
209 |
|
---|
210 | vertex_program_ref GameTools/CubeMap/VertexPrograms/LocalizedVS
|
---|
211 | {
|
---|
212 | param_named_auto worldViewProj worldviewproj_matrix
|
---|
213 | param_named_auto world world_matrix
|
---|
214 |
|
---|
215 | }
|
---|
216 | fragment_program_ref GameTools/CubeMap/FragmentPrograms/LocalizedMetalPS
|
---|
217 | {
|
---|
218 | param_named_auto cameraPos camera_position
|
---|
219 | //param_named n float3 1.83 0.96 0.577
|
---|
220 | //param_named k float3 8.31 6.69 5.288
|
---|
221 | param_named F0 float3 0.9 0.92 0.92
|
---|
222 | param_named_auto lightPosition light_position 0
|
---|
223 |
|
---|
224 | }
|
---|
225 |
|
---|
226 | //Cube map for reflections and refractions
|
---|
227 | texture_unit
|
---|
228 | {
|
---|
229 | cubic_texture cubemap.jpg combinedUVW
|
---|
230 | tex_address_mode clamp
|
---|
231 | colour_op replace
|
---|
232 | }
|
---|
233 |
|
---|
234 | //Cube map of distances
|
---|
235 | texture_unit
|
---|
236 | {
|
---|
237 | cubic_texture cubemap.jpg combinedUVW
|
---|
238 | tex_address_mode clamp
|
---|
239 | colour_op replace
|
---|
240 | }
|
---|
241 |
|
---|
242 |
|
---|
243 | }
|
---|
244 | }
|
---|
245 | } |
---|