[1629] | 1 | vertex_program PhongViewSpaceVS hlsl
|
---|
| 2 | {
|
---|
| 3 | source GameTools_Phong.hlsl
|
---|
| 4 | entry_point PhongViewSpaceVS
|
---|
| 5 | target vs_2_0
|
---|
| 6 | }
|
---|
| 7 |
|
---|
| 8 | fragment_program TexturedPhongPS hlsl
|
---|
| 9 | {
|
---|
| 10 | source GameTools_Phong.hlsl
|
---|
| 11 | entry_point PhongTexturedPS
|
---|
| 12 | target ps_3_0
|
---|
| 13 | }
|
---|
| 14 |
|
---|
| 15 | material Difflab/TexturedPhong
|
---|
| 16 | {
|
---|
| 17 |
|
---|
| 18 | technique 0
|
---|
| 19 | {
|
---|
| 20 |
|
---|
| 21 | pass 0
|
---|
| 22 | {
|
---|
| 23 | vertex_program_ref PhongViewSpaceVS
|
---|
| 24 | {
|
---|
| 25 | param_named_auto worldViewProj worldviewproj_matrix
|
---|
| 26 | param_named_auto worldView world_matrix
|
---|
| 27 | param_named_auto worldViewIT inverse_transpose_world_matrix
|
---|
| 28 | }
|
---|
| 29 | fragment_program_ref TexturedPhongPS
|
---|
| 30 | {
|
---|
| 31 | param_named_auto cameraPos camera_position
|
---|
| 32 |
|
---|
| 33 | param_named_auto worldViewIT inverse_transpose_worldview_matrix
|
---|
| 34 |
|
---|
| 35 | param_named_auto lightcol1 light_diffuse_colour 0
|
---|
| 36 | param_named_auto lightcol2 light_diffuse_colour 1
|
---|
| 37 | param_named_auto lightcol3 light_diffuse_colour 2
|
---|
| 38 | param_named_auto lightcol4 light_diffuse_colour 3
|
---|
| 39 | param_named_auto lightcol5 light_diffuse_colour 4
|
---|
| 40 | param_named_auto lightcol6 light_diffuse_colour 5
|
---|
| 41 | param_named_auto lightcol7 light_diffuse_colour 6
|
---|
| 42 | param_named_auto lightcol8 light_diffuse_colour 7
|
---|
| 43 |
|
---|
| 44 | param_named_auto lightpos1 light_position 0
|
---|
| 45 | param_named_auto lightpos2 light_position 1
|
---|
| 46 | param_named_auto lightpos3 light_position 2
|
---|
| 47 | param_named_auto lightpos4 light_position 3
|
---|
| 48 | param_named_auto lightpos5 light_position 4
|
---|
| 49 | param_named_auto lightpos6 light_position 5
|
---|
| 50 | param_named_auto lightpos7 light_position 6
|
---|
| 51 | param_named_auto lightpos8 light_position 7
|
---|
| 52 |
|
---|
| 53 | param_named_auto lightdir1 light_direction 0
|
---|
| 54 | param_named_auto lightdir2 light_direction 1
|
---|
| 55 | param_named_auto lightdir3 light_direction 2
|
---|
| 56 | param_named_auto lightdir4 light_direction 3
|
---|
| 57 | param_named_auto lightdir5 light_direction 4
|
---|
| 58 | param_named_auto lightdir6 light_direction 5
|
---|
| 59 | param_named_auto lightdir7 light_direction 6
|
---|
| 60 | param_named_auto lightdir8 light_direction 7
|
---|
| 61 |
|
---|
| 62 | param_named_auto lightscale1 light_power 0
|
---|
| 63 | param_named_auto lightscale2 light_power 1
|
---|
| 64 | param_named_auto lightscale3 light_power 2
|
---|
| 65 | param_named_auto lightscale4 light_power 3
|
---|
| 66 | param_named_auto lightscale5 light_power 4
|
---|
| 67 | param_named_auto lightscale6 light_power 5
|
---|
| 68 | param_named_auto lightscale7 light_power 6
|
---|
| 69 | param_named_auto lightscale8 light_power 7
|
---|
| 70 |
|
---|
| 71 | param_named_auto ambientLight ambient_light_colour
|
---|
| 72 |
|
---|
| 73 | param_named shininess float 20
|
---|
| 74 | param_named ambient float4 0.2 0.2 0.2 1
|
---|
| 75 | param_named diffuse float4 0.5 0.5 0.5 1
|
---|
| 76 | param_named specular float4 1 1 1 1
|
---|
| 77 | }
|
---|
| 78 | texture_unit 0
|
---|
| 79 | {
|
---|
| 80 |
|
---|
| 81 | }
|
---|
| 82 |
|
---|
| 83 | }
|
---|
| 84 | }
|
---|
| 85 | } |
---|
| 86 | |
---|
| 87 | material screen |
---|
| 88 | { |
---|
| 89 | technique |
---|
| 90 | { |
---|
| 91 | pass |
---|
| 92 | { |
---|
| 93 | cull_hardware none |
---|
| 94 | lighting off |
---|
| 95 | ambient 0 0 0 1 |
---|
| 96 | diffuse 0 0 0 1 |
---|
| 97 | specular 0 0 0 0 |
---|
| 98 | emissive 0 0 0 |
---|
| 99 | texture_unit |
---|
| 100 | { |
---|
| 101 | texture screen.jpg |
---|
| 102 | } |
---|
| 103 | } |
---|
| 104 | } |
---|
| 105 | } |
---|
| 106 | material screenborder |
---|
| 107 | { |
---|
| 108 | technique |
---|
| 109 | { |
---|
| 110 | pass |
---|
| 111 | { |
---|
| 112 | IllumTechniques
|
---|
| 113 | { |
---|
| 114 | RenderTechnique DepthShadowReciever
|
---|
| 115 | {
|
---|
| 116 | max_light_count 3
|
---|
[1671] | 117 | vertex_program_name GameTools/ShadowMap/ShadowDistVS
|
---|
| 118 | fragment_program_name GameTools/ShadowMap/ShadowDistPS
|
---|
| 119 | set_light_view true
|
---|
| 120 | set_light_farplane true
|
---|
[1629] | 121 | } |
---|
| 122 | } |
---|
| 123 | ambient 0.37606 0.37606 0.37606 1 |
---|
| 124 | diffuse 0.37606 0.37606 0.37606 1 |
---|
| 125 | specular 0 0 0 0 |
---|
| 126 | emissive 0 0 0 |
---|
| 127 | |
---|
| 128 | } |
---|
| 129 | } |
---|
| 130 | } |
---|
| 131 | material whitebackground : Difflab/TexturedPhong |
---|
| 132 | { |
---|
| 133 | technique |
---|
| 134 | { |
---|
| 135 | pass |
---|
| 136 | { |
---|
| 137 | IllumTechniques
|
---|
| 138 | { |
---|
| 139 | RenderTechnique DepthShadowReciever
|
---|
| 140 | {
|
---|
| 141 | max_light_count 3
|
---|
[1671] | 142 | vertex_program_name GameTools/ShadowMap/ShadowDistVS
|
---|
| 143 | fragment_program_name GameTools/ShadowMap/ShadowDistPS
|
---|
| 144 | set_light_view true
|
---|
| 145 | set_light_farplane true
|
---|
[1629] | 146 | } |
---|
| 147 | } |
---|
| 148 | fragment_program_ref
|
---|
| 149 | {
|
---|
| 150 | param_named shininess float 0
|
---|
| 151 | param_named ambient float4 1.0 1.0 1.0 1
|
---|
| 152 | param_named diffuse float4 1.0 1.0 1.0 1
|
---|
| 153 | param_named specular float4 0 0 0 0
|
---|
| 154 | } |
---|
| 155 | cull_hardware none |
---|
| 156 | } |
---|
| 157 | } |
---|
| 158 | } |
---|
| 159 | material laborceil |
---|
| 160 | { |
---|
| 161 | technique |
---|
| 162 | { |
---|
| 163 | pass |
---|
| 164 | { |
---|
[1638] | 165 | |
---|
[1629] | 166 | lighting off |
---|
| 167 | ambient 0 0 0 1 |
---|
| 168 | diffuse 0 0 0 1 |
---|
| 169 | specular 0 0 0 0 |
---|
| 170 | emissive 0 0 0 |
---|
| 171 | texture_unit |
---|
| 172 | { |
---|
| 173 | texture laborwall.jpg |
---|
| 174 | } |
---|
| 175 | } |
---|
| 176 | } |
---|
| 177 | } |
---|
| 178 | material laborwall : Difflab/TexturedPhong |
---|
| 179 | { |
---|
| 180 | technique 0 |
---|
| 181 | { |
---|
| 182 | pass 0 |
---|
| 183 | { |
---|
| 184 | IllumTechniques
|
---|
| 185 | { |
---|
| 186 | RenderTechnique DepthShadowReciever
|
---|
| 187 | {
|
---|
| 188 | max_light_count 3
|
---|
[1671] | 189 | vertex_program_name GameTools/ShadowMap/ShadowDistVS
|
---|
| 190 | fragment_program_name GameTools/ShadowMap/ShadowDistPS
|
---|
| 191 | set_light_view true
|
---|
| 192 | set_light_farplane true
|
---|
[1629] | 193 | } |
---|
| 194 | } |
---|
| 195 | |
---|
| 196 | fragment_program_ref
|
---|
| 197 | {
|
---|
| 198 | param_named shininess float 0
|
---|
| 199 | param_named ambient float4 1.0 1.0 1.0 1
|
---|
| 200 | param_named diffuse float4 1.0 1.0 1.0 1
|
---|
| 201 | param_named specular float4 0 0 0 0
|
---|
| 202 | } |
---|
| 203 | |
---|
| 204 | texture_unit 0 |
---|
| 205 | { |
---|
| 206 | texture laborwall.jpg |
---|
| 207 | } |
---|
| 208 | } |
---|
| 209 | } |
---|
| 210 | } |
---|
| 211 | |
---|
| 212 | material lambert6 : Difflab/TexturedPhong |
---|
| 213 | { |
---|
| 214 | technique 0 |
---|
| 215 | { |
---|
| 216 | pass 0 |
---|
| 217 | { |
---|
| 218 | fragment_program_ref
|
---|
| 219 | {
|
---|
| 220 | param_named shininess float 0
|
---|
| 221 | param_named ambient float4 1 1 1 1
|
---|
| 222 | param_named diffuse float4 1 1 1 1
|
---|
| 223 | param_named specular float4 0 0 0 0
|
---|
| 224 | } |
---|
| 225 | |
---|
| 226 | texture_unit 0 |
---|
| 227 | { |
---|
| 228 | texture striped.jpg |
---|
| 229 | } |
---|
| 230 | } |
---|
| 231 | } |
---|
| 232 | } |
---|
| 233 | material doorlamp |
---|
| 234 | { |
---|
| 235 | technique |
---|
| 236 | { |
---|
| 237 | pass |
---|
| 238 | { |
---|
| 239 | lighting off |
---|
| 240 | ambient 0 0 0 1 |
---|
| 241 | diffuse 0 0 0 1 |
---|
| 242 | specular 0 0 0 0 |
---|
| 243 | emissive 0 0 0 |
---|
| 244 | texture_unit |
---|
| 245 | { |
---|
| 246 | texture lamp.jpg |
---|
| 247 | } |
---|
| 248 | } |
---|
| 249 | } |
---|
| 250 | } |
---|
| 251 | material equipt : Difflab/TexturedPhong |
---|
| 252 | { |
---|
| 253 | technique 0 |
---|
| 254 | { |
---|
| 255 | |
---|
| 256 | pass 0 |
---|
| 257 | { |
---|
| 258 | IllumTechniques
|
---|
| 259 | { |
---|
| 260 | RenderTechnique DepthShadowReciever
|
---|
| 261 | {
|
---|
| 262 | max_light_count 3
|
---|
[1671] | 263 | vertex_program_name GameTools/ShadowMap/ShadowDistVS
|
---|
| 264 | fragment_program_name GameTools/ShadowMap/ShadowDistPS
|
---|
| 265 | set_light_view true
|
---|
| 266 | set_light_farplane true
|
---|
[1629] | 267 | } |
---|
| 268 | } |
---|
| 269 | fragment_program_ref
|
---|
| 270 | {
|
---|
| 271 | param_named shininess float 51.418
|
---|
| 272 | param_named ambient float4 0.1282 0.1282 0.1282 1
|
---|
| 273 | param_named diffuse float4 0.1282 0.1282 0.1282 1
|
---|
| 274 | param_named specular float4 1 1 1 1
|
---|
| 275 | } |
---|
| 276 | } |
---|
| 277 | } |
---|
| 278 | } |
---|
| 279 | material bluelamp |
---|
| 280 | { |
---|
| 281 | technique |
---|
| 282 | { |
---|
| 283 | pass |
---|
| 284 | { |
---|
| 285 | lighting off |
---|
| 286 | ambient 0.5 0.5 0.5 1 |
---|
| 287 | diffuse 0.5 0.5 0.5 1 |
---|
| 288 | specular 0.5 0.5 0.5 20 |
---|
| 289 | emissive 0 0 0 |
---|
| 290 | texture_unit |
---|
| 291 | { |
---|
| 292 | texture bluelamp.jpg |
---|
| 293 | } |
---|
| 294 | } |
---|
| 295 | |
---|
| 296 | } |
---|
| 297 | } |
---|