[1094] | 1 | material GameTools/CubeMap/Reduce
|
---|
| 2 | {
|
---|
| 3 |
|
---|
| 4 | technique
|
---|
| 5 | {
|
---|
| 6 | pass
|
---|
| 7 | {
|
---|
| 8 | //depth_check off
|
---|
| 9 | lighting off
|
---|
| 10 |
|
---|
| 11 | vertex_program_ref GameTools/CubeMap/VertexPrograms/ReduceVS
|
---|
| 12 | {
|
---|
| 13 | // param_named_auto worldViewProj worldviewproj_matrix
|
---|
| 14 | // param_named_auto world world_matrix
|
---|
| 15 | }
|
---|
| 16 | fragment_program_ref GameTools/CubeMap/FragmentPrograms/ReducePS
|
---|
| 17 | {
|
---|
| 18 | //param_named_auto cameraPos camera_position
|
---|
| 19 | param_named nFace int 0
|
---|
| 20 | param_named CUBEMAP_SIZE int 256
|
---|
| 21 | //param_named RATE int 2
|
---|
| 22 |
|
---|
| 23 | }
|
---|
| 24 |
|
---|
| 25 | //Cube map for reflections and refractions
|
---|
| 26 | texture_unit
|
---|
| 27 | {
|
---|
| 28 | filtering point point point
|
---|
| 29 | cubic_texture cubemap.jpg combinedUVW
|
---|
| 30 | tex_address_mode clamp
|
---|
| 31 | // env_map cubic_reflection
|
---|
| 32 | colour_op modulate
|
---|
| 33 | }
|
---|
| 34 |
|
---|
| 35 |
|
---|
| 36 | }
|
---|
| 37 | }
|
---|
| 38 | }
|
---|
| 39 |
|
---|
[1525] | 40 | material GameTools/Diffuse
|
---|
[1094] | 41 | {
|
---|
| 42 | technique
|
---|
| 43 | {
|
---|
| 44 | pass
|
---|
| 45 | {
|
---|
| 46 |
|
---|
| 47 | IllumTechniques
|
---|
| 48 | {
|
---|
[1519] | 49 | RenderTechnique DistanceCubeMap
|
---|
| 50 | {
|
---|
| 51 | update_interval 1
|
---|
| 52 | distance_calc false
|
---|
| 53 | }
|
---|
[1094] | 54 | RenderTechnique ReducedColorCubeMap
|
---|
| 55 | {
|
---|
[1519] | 56 | update_interval 1
|
---|
| 57 | reduced_resolution 4
|
---|
| 58 | resolution 128
|
---|
[1094] | 59 | distance_calc false
|
---|
| 60 | face_angle_calc false
|
---|
[1519] | 61 | update_all_face true
|
---|
[1094] | 62 | }
|
---|
| 63 | }
|
---|
| 64 |
|
---|
| 65 |
|
---|
| 66 | vertex_program_ref GameTools/DiffuseVS
|
---|
| 67 | {
|
---|
| 68 | param_named_auto worldViewProj worldviewproj_matrix
|
---|
| 69 | param_named_auto world world_matrix
|
---|
| 70 |
|
---|
| 71 | }
|
---|
| 72 | fragment_program_ref GameTools/DiffusePS
|
---|
| 73 | {
|
---|
| 74 | param_named REDUCED_CUBEMAP_SIZE int 8
|
---|
| 75 | param_named lastCenter float3 0 0 0
|
---|
| 76 | }
|
---|
| 77 |
|
---|
| 78 | //Cube map for reflections and refractions
|
---|
| 79 | texture_unit
|
---|
| 80 | {
|
---|
| 81 | cubic_texture cubemap.jpg combinedUVW
|
---|
| 82 | tex_address_mode clamp
|
---|
| 83 | colour_op replace
|
---|
| 84 | }
|
---|
| 85 |
|
---|
| 86 | //Cube map of distances
|
---|
| 87 | texture_unit
|
---|
| 88 | {
|
---|
| 89 | cubic_texture cubemap.jpg combinedUVW
|
---|
| 90 | tex_address_mode clamp
|
---|
| 91 | colour_op replace
|
---|
| 92 | }
|
---|
| 93 | }
|
---|
| 94 | }
|
---|
[1519] | 95 | }
|
---|
| 96 |
|
---|
| 97 |
|
---|
| 98 |
|
---|
| 99 | vertex_program Diffuse2VS hlsl
|
---|
| 100 | {
|
---|
| 101 | source GameTools_Diffuse.hlsl
|
---|
| 102 | entry_point DiffuseVS
|
---|
[1525] | 103 | target vs_3_0
|
---|
[1519] | 104 | }
|
---|
| 105 |
|
---|
| 106 | fragment_program Diffuse2PS hlsl
|
---|
| 107 | {
|
---|
| 108 | source GameTools_Diffuse.hlsl
|
---|
| 109 | entry_point DiffusePS
|
---|
| 110 | target ps_3_0
|
---|
| 111 | }
|
---|
| 112 |
|
---|
[1590] | 113 |
|
---|
| 114 |
|
---|
[1525] | 115 | material GameTools/Diffuse/use
|
---|
[1519] | 116 | {
|
---|
| 117 | technique
|
---|
| 118 | {
|
---|
| 119 | pass
|
---|
| 120 | {
|
---|
| 121 |
|
---|
| 122 | IllumTechniques
|
---|
| 123 | {
|
---|
| 124 | RenderTechnique DistanceCubeMap
|
---|
| 125 | {
|
---|
| 126 | update_interval 1
|
---|
[1638] | 127 | update_all_face true
|
---|
| 128 | distance_calc false
|
---|
| 129 | face_angle_calc false
|
---|
| 130 | resolution 128
|
---|
[1519] | 131 | }
|
---|
| 132 | RenderTechnique ReducedColorCubeMap
|
---|
| 133 | {
|
---|
| 134 | update_interval 1
|
---|
| 135 | reduced_resolution 4
|
---|
| 136 | resolution 128
|
---|
| 137 | distance_calc false
|
---|
| 138 | face_angle_calc false
|
---|
| 139 | update_all_face true
|
---|
| 140 | }
|
---|
| 141 | }
|
---|
| 142 |
|
---|
| 143 |
|
---|
| 144 | vertex_program_ref Diffuse2VS
|
---|
| 145 | {
|
---|
[1638] | 146 | param_named_auto worldViewProj worldviewproj_matrix
|
---|
| 147 | param_named_auto worldI inverse_world_matrix
|
---|
| 148 | param_named_auto world world_matrix
|
---|
[1519] | 149 |
|
---|
| 150 | }
|
---|
| 151 | fragment_program_ref Diffuse2PS
|
---|
| 152 | {
|
---|
| 153 | param_named lastCenter float3 0 0 0
|
---|
| 154 | }
|
---|
| 155 |
|
---|
| 156 | //Cube map for reflections and refractions
|
---|
| 157 | texture_unit
|
---|
| 158 | {
|
---|
[1671] | 159 |
|
---|
[1519] | 160 | }
|
---|
| 161 |
|
---|
| 162 | //Cube map of distances
|
---|
| 163 | texture_unit
|
---|
| 164 | {
|
---|
[1671] | 165 |
|
---|
[1519] | 166 | }
|
---|
| 167 | }
|
---|
| 168 | }
|
---|
[1590] | 169 | }
|
---|
| 170 |
|
---|
[1671] | 171 | vertex_program DiffuseBumpVS hlsl
|
---|
| 172 | {
|
---|
| 173 | source GameTools_Diffuse.hlsl
|
---|
| 174 | entry_point DiffuseBumpVS
|
---|
| 175 | target vs_3_0
|
---|
| 176 | }
|
---|
[1590] | 177 |
|
---|
[1671] | 178 | fragment_program DiffuseBumpPS hlsl
|
---|
| 179 | {
|
---|
| 180 | source GameTools_Diffuse.hlsl
|
---|
| 181 | entry_point DiffuseBumpPS
|
---|
| 182 | target ps_3_0
|
---|
| 183 | }
|
---|
| 184 |
|
---|
| 185 |
|
---|
| 186 |
|
---|
| 187 | material GameTools/DiffuseBump
|
---|
| 188 | {
|
---|
| 189 | technique
|
---|
| 190 | {
|
---|
| 191 | pass
|
---|
| 192 | {
|
---|
| 193 |
|
---|
| 194 | IllumTechniques
|
---|
| 195 | {
|
---|
| 196 | RenderTechnique DistanceCubeMap
|
---|
| 197 | {
|
---|
| 198 | update_interval 1
|
---|
| 199 | update_all_face true
|
---|
| 200 | distance_calc false
|
---|
| 201 | face_angle_calc false
|
---|
| 202 | resolution 128
|
---|
| 203 | }
|
---|
| 204 | RenderTechnique ReducedColorCubeMap
|
---|
| 205 | {
|
---|
| 206 | update_interval 1
|
---|
| 207 | reduced_resolution 4
|
---|
| 208 | resolution 128
|
---|
| 209 | distance_calc false
|
---|
| 210 | face_angle_calc false
|
---|
| 211 | update_all_face true
|
---|
| 212 | }
|
---|
| 213 | }
|
---|
| 214 |
|
---|
| 215 |
|
---|
| 216 | vertex_program_ref DiffuseBumpVS
|
---|
| 217 | {
|
---|
| 218 | param_named_auto worldViewProj worldviewproj_matrix
|
---|
| 219 | param_named_auto world world_matrix
|
---|
| 220 |
|
---|
| 221 | }
|
---|
| 222 | fragment_program_ref DiffuseBumpPS
|
---|
| 223 | {
|
---|
| 224 | param_named_auto worldI inverse_world_matrix
|
---|
| 225 | param_named lastCenter float3 0 0 0
|
---|
| 226 | }
|
---|
| 227 |
|
---|
| 228 | //Cube map for reflections and refractions
|
---|
| 229 | texture_unit
|
---|
| 230 | {
|
---|
| 231 | }
|
---|
| 232 |
|
---|
| 233 | //Cube map of distances
|
---|
| 234 | texture_unit
|
---|
| 235 | {
|
---|
| 236 |
|
---|
| 237 | }
|
---|
| 238 | texture_unit
|
---|
| 239 | {
|
---|
| 240 | texture atheneNormalMapNew.dds
|
---|
| 241 | }
|
---|
| 242 | }
|
---|
| 243 | }
|
---|
| 244 | }
|
---|
| 245 |
|
---|
[1590] | 246 | fragment_program DiffuseP2PPS hlsl
|
---|
| 247 | {
|
---|
| 248 | source GameTools_Diffuse.hlsl
|
---|
| 249 | entry_point EnvMapDiffuseP2PPS
|
---|
| 250 | target ps_3_0
|
---|
| 251 | }
|
---|
| 252 |
|
---|
[1671] | 253 | material GameTools/DiffuseP2P
|
---|
[1590] | 254 | {
|
---|
| 255 | technique
|
---|
| 256 | {
|
---|
| 257 | pass
|
---|
| 258 | {
|
---|
| 259 |
|
---|
| 260 | IllumTechniques
|
---|
| 261 | {
|
---|
| 262 | RenderTechnique DistanceCubeMap
|
---|
| 263 | {
|
---|
| 264 | update_interval 1
|
---|
[1671] | 265 | resolution 128
|
---|
[1590] | 266 | distance_calc false
|
---|
| 267 | face_angle_calc false
|
---|
| 268 | update_all_face true
|
---|
| 269 | }
|
---|
| 270 | RenderTechnique ReducedColorCubeMap
|
---|
| 271 | {
|
---|
| 272 | update_interval 1
|
---|
| 273 | reduced_resolution 4
|
---|
| 274 | resolution 128
|
---|
| 275 | distance_calc false
|
---|
| 276 | face_angle_calc false
|
---|
| 277 | update_all_face true
|
---|
| 278 | }
|
---|
| 279 | }
|
---|
| 280 |
|
---|
| 281 |
|
---|
| 282 | vertex_program_ref Diffuse2VS
|
---|
| 283 | {
|
---|
[1671] | 284 | param_named_auto worldViewProj worldviewproj_matrix
|
---|
| 285 | param_named_auto worldI inverse_world_matrix
|
---|
| 286 | param_named_auto world world_matrix
|
---|
[1590] | 287 | }
|
---|
| 288 | fragment_program_ref DiffuseP2PPS
|
---|
| 289 | {
|
---|
| 290 | param_named lastCenter float3 0 0 0
|
---|
| 291 | }
|
---|
| 292 |
|
---|
| 293 | //Cube map for reflections and refractions
|
---|
| 294 | texture_unit
|
---|
| 295 | {
|
---|
[1671] | 296 |
|
---|
[1590] | 297 | }
|
---|
| 298 |
|
---|
| 299 | //Cube map of distances
|
---|
| 300 | texture_unit
|
---|
| 301 | {
|
---|
[1671] | 302 |
|
---|
[1590] | 303 | }
|
---|
| 304 | }
|
---|
| 305 | }
|
---|
[1094] | 306 | } |
---|