Last change
on this file since 72 was
44,
checked in by bknecht, 17 years ago
|
merge from tutorial branche to trunk
|
-
Property svn:executable set to
*
|
File size:
3.1 KB
|
Line | |
---|
1 | // Materials for deferred shading test |
---|
2 | |
---|
3 | // Sky box |
---|
4 | material Test13/SkyBox |
---|
5 | { |
---|
6 | technique |
---|
7 | { |
---|
8 | pass |
---|
9 | { |
---|
10 | depth_write off |
---|
11 | lighting off |
---|
12 | texture_unit |
---|
13 | { |
---|
14 | cubic_texture evening.jpg separateUV |
---|
15 | tex_address_mode clamp |
---|
16 | } |
---|
17 | } |
---|
18 | } |
---|
19 | } |
---|
20 | |
---|
21 | // Ground plane |
---|
22 | material Test13/Ground: DeferredShading/Material/TexturedPhong |
---|
23 | { |
---|
24 | technique hlsl |
---|
25 | { |
---|
26 | pass main |
---|
27 | { |
---|
28 | texture_unit |
---|
29 | { |
---|
30 | texture grass_1024.jpg |
---|
31 | } |
---|
32 | } |
---|
33 | } |
---|
34 | technique glsl |
---|
35 | { |
---|
36 | pass main |
---|
37 | { |
---|
38 | texture_unit |
---|
39 | { |
---|
40 | texture grass_1024.jpg |
---|
41 | } |
---|
42 | } |
---|
43 | } |
---|
44 | } |
---|
45 | |
---|
46 | // Rock wall texture [bumpmapped] |
---|
47 | material Test13/RockWall: DeferredShading/Material/TexturedNormalMapped |
---|
48 | { |
---|
49 | technique hlsl |
---|
50 | { |
---|
51 | pass main |
---|
52 | { |
---|
53 | texture_unit |
---|
54 | { |
---|
55 | texture rockwall.tga |
---|
56 | } |
---|
57 | texture_unit |
---|
58 | { |
---|
59 | texture rockwall_NH.tga |
---|
60 | } |
---|
61 | } |
---|
62 | } |
---|
63 | technique glsl |
---|
64 | { |
---|
65 | pass main |
---|
66 | { |
---|
67 | texture_unit |
---|
68 | { |
---|
69 | texture rockwall.tga |
---|
70 | } |
---|
71 | texture_unit |
---|
72 | { |
---|
73 | texture rockwall_NH.tga |
---|
74 | } |
---|
75 | } |
---|
76 | } |
---|
77 | } |
---|
78 | |
---|
79 | |
---|
80 | // Athena texture [bumpmapped, untextured] |
---|
81 | material Test13/DeferredAthena: DeferredShading/Material/UntexturedNormalMapped |
---|
82 | { |
---|
83 | technique hlsl |
---|
84 | { |
---|
85 | pass main |
---|
86 | { |
---|
87 | texture_unit |
---|
88 | { |
---|
89 | texture atheneNormalMap.png |
---|
90 | } |
---|
91 | fragment_program_ref |
---|
92 | { |
---|
93 | param_named specularity float 0.5 |
---|
94 | } |
---|
95 | } |
---|
96 | } |
---|
97 | technique glsl |
---|
98 | { |
---|
99 | pass main |
---|
100 | { |
---|
101 | texture_unit |
---|
102 | { |
---|
103 | texture atheneNormalMap.png |
---|
104 | } |
---|
105 | fragment_program_ref |
---|
106 | { |
---|
107 | param_named specularity float 0.5 |
---|
108 | } |
---|
109 | } |
---|
110 | } |
---|
111 | } |
---|
112 | |
---|
113 | /// Ogre parts |
---|
114 | material Test13/DeferredOgre/Skin: DeferredShading/Material/TexturedPhong |
---|
115 | { |
---|
116 | technique hlsl |
---|
117 | { |
---|
118 | pass main |
---|
119 | { |
---|
120 | cull_hardware none |
---|
121 | texture_unit |
---|
122 | { |
---|
123 | texture GreenSkin.jpg |
---|
124 | tex_address_mode mirror |
---|
125 | } |
---|
126 | } |
---|
127 | } |
---|
128 | technique glsl |
---|
129 | { |
---|
130 | pass main |
---|
131 | { |
---|
132 | cull_hardware none |
---|
133 | texture_unit |
---|
134 | { |
---|
135 | texture GreenSkin.jpg |
---|
136 | tex_address_mode mirror |
---|
137 | } |
---|
138 | } |
---|
139 | } |
---|
140 | } |
---|
141 | material Test13/DeferredOgre/EarRing: DeferredShading/Material/UntexturedPhong |
---|
142 | { |
---|
143 | technique hlsl |
---|
144 | { |
---|
145 | pass main |
---|
146 | { |
---|
147 | fragment_program_ref |
---|
148 | { |
---|
149 | param_named specularity float 1.5 |
---|
150 | param_named colour float3 0.5 0.5 0 |
---|
151 | } |
---|
152 | } |
---|
153 | } |
---|
154 | technique glsl |
---|
155 | { |
---|
156 | pass main |
---|
157 | { |
---|
158 | fragment_program_ref |
---|
159 | { |
---|
160 | param_named specularity float 1.5 |
---|
161 | param_named colour float3 0.5 0.5 0 |
---|
162 | } |
---|
163 | } |
---|
164 | } |
---|
165 | } |
---|
166 | material Test13/DeferredOgre/Tusks: DeferredShading/Material/TexturedPhong |
---|
167 | { |
---|
168 | technique hlsl |
---|
169 | { |
---|
170 | pass main |
---|
171 | { |
---|
172 | fragment_program_ref |
---|
173 | { |
---|
174 | param_named specularity float 0.5 |
---|
175 | } |
---|
176 | texture_unit |
---|
177 | { |
---|
178 | texture dirt01.jpg |
---|
179 | } |
---|
180 | } |
---|
181 | } |
---|
182 | technique glsl |
---|
183 | { |
---|
184 | pass main |
---|
185 | { |
---|
186 | fragment_program_ref |
---|
187 | { |
---|
188 | param_named specularity float 0.5 |
---|
189 | } |
---|
190 | texture_unit |
---|
191 | { |
---|
192 | texture dirt01.jpg |
---|
193 | } |
---|
194 | } |
---|
195 | } |
---|
196 | } |
---|
197 | material Test13/DeferredOgre/Eyes: DeferredShading/Material/TexturedPhong |
---|
198 | { |
---|
199 | technique hlsl |
---|
200 | { |
---|
201 | pass main |
---|
202 | { |
---|
203 | fragment_program_ref |
---|
204 | { |
---|
205 | param_named specularity float 1.0 |
---|
206 | } |
---|
207 | texture_unit |
---|
208 | { |
---|
209 | texture WeirdEye.png |
---|
210 | } |
---|
211 | } |
---|
212 | } |
---|
213 | technique glsl |
---|
214 | { |
---|
215 | pass main |
---|
216 | { |
---|
217 | fragment_program_ref |
---|
218 | { |
---|
219 | param_named specularity float 1.0 |
---|
220 | } |
---|
221 | texture_unit |
---|
222 | { |
---|
223 | texture WeirdEye.png |
---|
224 | } |
---|
225 | } |
---|
226 | } |
---|
227 | } |
---|
228 | |
---|
Note: See
TracBrowser
for help on using the repository browser.