1 | material Flare
|
---|
2 | {
|
---|
3 | technique
|
---|
4 | {
|
---|
5 | pass
|
---|
6 | {
|
---|
7 | //cull_hardware none
|
---|
8 | lighting off
|
---|
9 | scene_blend add
|
---|
10 | //scene_blend_op add
|
---|
11 | //scene_blend_op_alpha add
|
---|
12 | //scene_blend_alpha add
|
---|
13 | depth_write off
|
---|
14 |
|
---|
15 | ambient 1 0 0 1
|
---|
16 | diffuse 1 0 0 1
|
---|
17 | texture_unit
|
---|
18 | {
|
---|
19 | texture flare.png
|
---|
20 | }
|
---|
21 | }
|
---|
22 | }
|
---|
23 | }
|
---|
24 |
|
---|
25 | material Examples/MorningSkyBox
|
---|
26 | {
|
---|
27 | technique
|
---|
28 | {
|
---|
29 | pass
|
---|
30 | {
|
---|
31 | lighting off
|
---|
32 | depth_write off
|
---|
33 |
|
---|
34 | texture_unit
|
---|
35 | {
|
---|
36 | cubic_texture morning.jpg separateUV
|
---|
37 | tex_address_mode clamp
|
---|
38 | }
|
---|
39 | }
|
---|
40 | }
|
---|
41 | }
|
---|
42 |
|
---|
43 | material GameTools/Rockwall
|
---|
44 | {
|
---|
45 | technique
|
---|
46 | {
|
---|
47 | pass
|
---|
48 | {
|
---|
49 | lighting off
|
---|
50 | texture_unit
|
---|
51 | {
|
---|
52 | texture rockwall.tga
|
---|
53 | env_map cubic_normal
|
---|
54 | //vertex_texture true
|
---|
55 | }
|
---|
56 | }
|
---|
57 | }
|
---|
58 | }
|
---|
59 |
|
---|
60 | material GameTools/Standard
|
---|
61 | {
|
---|
62 | technique
|
---|
63 | {
|
---|
64 | pass
|
---|
65 | {
|
---|
66 | ambient 0.1 0.11 0.15
|
---|
67 | diffuse 0.8 0.9 1.0
|
---|
68 | }
|
---|
69 | }
|
---|
70 | }
|
---|
71 |
|
---|
72 |
|
---|
73 |
|
---|
74 | material GameTools/UVShader
|
---|
75 | {
|
---|
76 | technique
|
---|
77 | {
|
---|
78 | pass
|
---|
79 | {
|
---|
80 | vertex_program_ref GameTools/UV_VS
|
---|
81 | {
|
---|
82 | param_named_auto worldViewProj worldviewproj_matrix
|
---|
83 | }
|
---|
84 | fragment_program_ref GameTools/UV_PS
|
---|
85 | {
|
---|
86 | param_named_auto ID custom 0
|
---|
87 | }
|
---|
88 |
|
---|
89 |
|
---|
90 | }
|
---|
91 | }
|
---|
92 | }
|
---|
93 |
|
---|
94 | material GameTools/DistanceShader
|
---|
95 | {
|
---|
96 |
|
---|
97 | technique
|
---|
98 | {
|
---|
99 | pass
|
---|
100 | {
|
---|
101 | vertex_program_ref GameTools/DistanceVS
|
---|
102 | {
|
---|
103 | param_named_auto worldView worldview_matrix
|
---|
104 | param_named_auto worldViewProj worldviewproj_matrix
|
---|
105 | }
|
---|
106 | fragment_program_ref GameTools/DistancePS
|
---|
107 | {
|
---|
108 |
|
---|
109 | }
|
---|
110 |
|
---|
111 | }
|
---|
112 | }
|
---|
113 | }
|
---|
114 |
|
---|
115 | material GameTools/SceneCameraDepthShader
|
---|
116 | {
|
---|
117 |
|
---|
118 | technique
|
---|
119 | {
|
---|
120 | scene_blend none
|
---|
121 |
|
---|
122 | pass
|
---|
123 | {
|
---|
124 | vertex_program_ref GameTools/SceneCameraDepthVS
|
---|
125 | {
|
---|
126 | param_named_auto worldView worldview_matrix
|
---|
127 | param_named_auto worldViewProj worldviewproj_matrix
|
---|
128 | param_named_auto farplane far_clip_distance
|
---|
129 | }
|
---|
130 | fragment_program_ref GameTools/SceneDepthPS
|
---|
131 | {
|
---|
132 |
|
---|
133 | }
|
---|
134 |
|
---|
135 | }
|
---|
136 | }
|
---|
137 | }
|
---|
138 |
|
---|
139 | material GameTools/FocusingShader
|
---|
140 | {
|
---|
141 |
|
---|
142 | technique
|
---|
143 | {
|
---|
144 | scene_blend none
|
---|
145 |
|
---|
146 | pass
|
---|
147 | {
|
---|
148 | vertex_program_ref GameTools/FocusingVS
|
---|
149 | {
|
---|
150 | param_named_auto world world_matrix
|
---|
151 | param_named_auto worldViewProj worldviewproj_matrix
|
---|
152 | param_named lightTransform matrix4x4
|
---|
153 | }
|
---|
154 | fragment_program_ref GameTools/FocusingPS
|
---|
155 | {
|
---|
156 |
|
---|
157 | }
|
---|
158 |
|
---|
159 | }
|
---|
160 | }
|
---|
161 | }
|
---|
162 |
|
---|
163 | material GameTools/ShadowMapDepth
|
---|
164 | {
|
---|
165 |
|
---|
166 | technique
|
---|
167 | {
|
---|
168 | scene_blend none
|
---|
169 |
|
---|
170 | pass
|
---|
171 | {
|
---|
172 | //cull_hardware anticlockwise
|
---|
173 | //cull_hardware none
|
---|
174 |
|
---|
175 | vertex_program_ref GameTools/ShadowMap/DepthVS
|
---|
176 | {
|
---|
177 | param_named_auto worldViewProj worldviewproj_matrix
|
---|
178 | }
|
---|
179 | fragment_program_ref GameTools/ShadowMap/DepthPS
|
---|
180 | {
|
---|
181 |
|
---|
182 | }
|
---|
183 |
|
---|
184 | }
|
---|
185 | }
|
---|
186 | }
|
---|
187 |
|
---|
188 |
|
---|
189 | material GameTools/Blur
|
---|
190 | {
|
---|
191 |
|
---|
192 | technique
|
---|
193 | {
|
---|
194 |
|
---|
195 | pass
|
---|
196 | {
|
---|
197 | vertex_program_ref GameTools/BlurVS
|
---|
198 | {
|
---|
199 |
|
---|
200 | }
|
---|
201 | fragment_program_ref GameTools/BlurPS
|
---|
202 | {
|
---|
203 | param_named_auto width viewport_width
|
---|
204 | param_named_auto height viewport_height
|
---|
205 | }
|
---|
206 | texture_unit
|
---|
207 | {
|
---|
208 | filtering bilinear
|
---|
209 | }
|
---|
210 |
|
---|
211 | }
|
---|
212 | }
|
---|
213 | } |
---|