1 | vertex_program GTP/Demo/BumpMapped_VS hlsl
|
---|
2 | {
|
---|
3 | source bump.hlsl
|
---|
4 | entry_point BaseVS
|
---|
5 | target vs_2_0
|
---|
6 | }
|
---|
7 |
|
---|
8 | fragment_program GTP/Demo/BumpMapped_PS hlsl
|
---|
9 | {
|
---|
10 | source bump.hlsl
|
---|
11 | entry_point BumpPS
|
---|
12 | target ps_2_0
|
---|
13 | }
|
---|
14 |
|
---|
15 | fragment_program GTP/Demo/ParallaxMapped_PS hlsl
|
---|
16 | {
|
---|
17 | source parallax.hlsl
|
---|
18 | entry_point ParallaxSlopeIterationPS
|
---|
19 | target ps_3_0
|
---|
20 | }
|
---|
21 |
|
---|
22 | material towermaterial
|
---|
23 | {
|
---|
24 | technique maintechnique
|
---|
25 | {
|
---|
26 | pass mainpass
|
---|
27 | {
|
---|
28 | vertex_program_ref GTP/Demo/BumpMapped_VS
|
---|
29 | {
|
---|
30 | param_named_auto WorldViewProj worldviewproj_matrix
|
---|
31 | param_named_auto World world_matrix
|
---|
32 | param_named_auto WorldI inverse_world_matrix
|
---|
33 | param_named_auto wLightPos light_position 0
|
---|
34 | param_named_auto wCamPos camera_position
|
---|
35 | param_named textureRepeat float 6
|
---|
36 | }
|
---|
37 | fragment_program_ref GTP/Demo/ParallaxMapped_PS
|
---|
38 | {
|
---|
39 | param_named HEIGHT_SCALE float 0.20
|
---|
40 | param_named HEIGHT_BIAS float -0.04
|
---|
41 | param_named textureRepeat float 10
|
---|
42 | }
|
---|
43 | texture_unit color
|
---|
44 | {
|
---|
45 | texture stone.bmp
|
---|
46 | tex_coord_set 0
|
---|
47 | colour_op replace
|
---|
48 | }
|
---|
49 | texture_unit detail
|
---|
50 | {
|
---|
51 | texture towerdetailgrey.bmp
|
---|
52 | tex_coord_set 1
|
---|
53 | colour_op modulate
|
---|
54 | }
|
---|
55 | texture_unit bump
|
---|
56 | {
|
---|
57 | texture stoneNormal.dds
|
---|
58 | tex_coord_set 0
|
---|
59 | }
|
---|
60 |
|
---|
61 | }
|
---|
62 |
|
---|
63 | }
|
---|
64 | }
|
---|
65 |
|
---|
66 | material wallmaterial : towermaterial
|
---|
67 | {
|
---|
68 | technique maintechnique
|
---|
69 | {
|
---|
70 | pass mainpass
|
---|
71 | {
|
---|
72 | texture_unit detail
|
---|
73 | {
|
---|
74 | texture walldetailgrey.bmp
|
---|
75 | }
|
---|
76 | }
|
---|
77 |
|
---|
78 | }
|
---|
79 | }
|
---|
80 |
|
---|
81 |
|
---|
82 |
|
---|
83 | material towermaterialBump
|
---|
84 | {
|
---|
85 | technique maintechnique
|
---|
86 | {
|
---|
87 | pass mainpass
|
---|
88 | {
|
---|
89 | vertex_program_ref GTP/Demo/BumpMapped_VS
|
---|
90 | {
|
---|
91 | param_named_auto WorldViewProj worldviewproj_matrix
|
---|
92 | param_named_auto World world_matrix
|
---|
93 | param_named_auto WorldI inverse_world_matrix
|
---|
94 | param_named_auto wLightPos light_position 0
|
---|
95 | param_named_auto wCamPos camera_position
|
---|
96 | param_named textureRepeat float 6
|
---|
97 | }
|
---|
98 | fragment_program_ref GTP/Demo/BumpMapped_PS
|
---|
99 | {
|
---|
100 | }
|
---|
101 | texture_unit color
|
---|
102 | {
|
---|
103 | texture stone.bmp
|
---|
104 | tex_coord_set 0
|
---|
105 | colour_op replace
|
---|
106 | }
|
---|
107 | texture_unit detail
|
---|
108 | {
|
---|
109 | texture towerdetail.bmp
|
---|
110 | tex_coord_set 1
|
---|
111 | colour_op modulate
|
---|
112 | }
|
---|
113 | texture_unit bump
|
---|
114 | {
|
---|
115 | texture stoneNormal.dds
|
---|
116 | tex_coord_set 0
|
---|
117 | }
|
---|
118 |
|
---|
119 | }
|
---|
120 |
|
---|
121 | }
|
---|
122 | }
|
---|
123 |
|
---|
124 | material pillarmaterial
|
---|
125 | {
|
---|
126 | technique maintechnique
|
---|
127 | {
|
---|
128 | pass mainpass
|
---|
129 | {
|
---|
130 | vertex_program_ref GTP/Demo/BumpMapped_VS
|
---|
131 | {
|
---|
132 | param_named_auto WorldViewProj worldviewproj_matrix
|
---|
133 | param_named_auto World world_matrix
|
---|
134 | param_named_auto WorldI inverse_world_matrix
|
---|
135 | param_named_auto wLightPos light_position 0
|
---|
136 | param_named_auto wCamPos camera_position
|
---|
137 | param_named textureRepeat float 1
|
---|
138 | }
|
---|
139 | fragment_program_ref GTP/Demo/BumpMapped_PS
|
---|
140 | {
|
---|
141 | param_named HEIGHT_SCALE float -0.005
|
---|
142 | param_named HEIGHT_BIAS float 0.00
|
---|
143 | param_named textureRepeat float 1
|
---|
144 | }
|
---|
145 | texture_unit color
|
---|
146 | {
|
---|
147 | texture pillarcolor.bmp
|
---|
148 | colour_op modulate
|
---|
149 | }
|
---|
150 | texture_unit detail
|
---|
151 | {
|
---|
152 | texture grounddetail.bmp
|
---|
153 | colour_op modulate
|
---|
154 | }
|
---|
155 | texture_unit bump
|
---|
156 | {
|
---|
157 | texture pillarbump.dds
|
---|
158 | }
|
---|
159 | }
|
---|
160 |
|
---|
161 | }
|
---|
162 | }
|
---|
163 |
|
---|
164 | material groundmaterial : towermaterialBump
|
---|
165 | {
|
---|
166 | technique maintechnique
|
---|
167 | {
|
---|
168 | pass mainpass
|
---|
169 | {
|
---|
170 | IllumTechniques
|
---|
171 | {
|
---|
172 | RenderTechnique DepthShadowReceiver
|
---|
173 | {
|
---|
174 | max_light_count 1
|
---|
175 | vertex_program_name GTP/Basic/LightCPos_VS
|
---|
176 | fragment_program_name GTP/Basic/SM/CameraDepth_PS
|
---|
177 | set_light_viewproj true
|
---|
178 | set_light_view true
|
---|
179 | set_light_farplane false
|
---|
180 | world_view_proj_param_name WorldViewProj
|
---|
181 | world_param_name World
|
---|
182 | light_viewproj_param_name LightViewProj
|
---|
183 | light_view_param_name LightView
|
---|
184 | pass_blending one zero
|
---|
185 | }
|
---|
186 |
|
---|
187 |
|
---|
188 | }
|
---|
189 |
|
---|
190 | vertex_program_ref GTP/Demo/BumpMapped_VS
|
---|
191 | {
|
---|
192 | param_named_auto WorldViewProj worldviewproj_matrix
|
---|
193 | param_named_auto World world_matrix
|
---|
194 | param_named_auto WorldI inverse_world_matrix
|
---|
195 | param_named_auto wLightPos light_position 0
|
---|
196 | param_named_auto wCamPos camera_position
|
---|
197 | param_named textureRepeat float 50
|
---|
198 | }
|
---|
199 | fragment_program_ref GTP/Demo/BumpMapped_PS
|
---|
200 | {
|
---|
201 | param_named HEIGHT_SCALE float 0.16
|
---|
202 | param_named HEIGHT_BIAS float -0.04
|
---|
203 | param_named textureRepeat float 50
|
---|
204 | }
|
---|
205 | texture_unit color
|
---|
206 | {
|
---|
207 | texture ground3.bmp
|
---|
208 | colour_op modulate
|
---|
209 | }
|
---|
210 | texture_unit detail
|
---|
211 | {
|
---|
212 | texture grounddetail.bmp
|
---|
213 | colour_op modulate
|
---|
214 | }
|
---|
215 | texture_unit bump
|
---|
216 | {
|
---|
217 | texture groundbump.dds
|
---|
218 | }
|
---|
219 | }
|
---|
220 |
|
---|
221 | }
|
---|
222 | }
|
---|
223 |
|
---|