[777] | 1 |
|
---|
| 2 | material EnvMetals/Copper
|
---|
| 3 | {
|
---|
| 4 |
|
---|
| 5 | technique
|
---|
| 6 | {
|
---|
| 7 | pass
|
---|
| 8 | {
|
---|
[825] | 9 | IllumTechniques
|
---|
| 10 | {
|
---|
| 11 | RenderTechnique ColorCubeMap
|
---|
| 12 | {
|
---|
[835] | 13 | update_interval 0
|
---|
[825] | 14 | distance_calc true 1.5
|
---|
[835] | 15 | face_angle_calc true 1.5
|
---|
| 16 | }
|
---|
| 17 | RenderTechnique DistanceCubeMap
|
---|
| 18 | {
|
---|
| 19 | update_interval 0
|
---|
| 20 | distance_calc true 1.5
|
---|
| 21 | face_angle_calc true 1.5
|
---|
| 22 | }
|
---|
[825] | 23 |
|
---|
| 24 | }
|
---|
| 25 | vertex_program_ref GameTools/CubeMap/VertexPrograms/LocalizedVS
|
---|
[777] | 26 | {
|
---|
| 27 | param_named_auto worldViewProj worldviewproj_matrix
|
---|
| 28 | param_named_auto world world_matrix
|
---|
| 29 |
|
---|
| 30 | }
|
---|
[825] | 31 | fragment_program_ref GameTools/CubeMap/FragmentPrograms/LocalizedMetalPS
|
---|
[777] | 32 | {
|
---|
[825] | 33 | param_named_auto cameraPos camera_position
|
---|
| 34 | //param_named n float3 0.21 0.96 1.17
|
---|
| 35 | //param_named k float3 4.16 2.57 2.32
|
---|
| 36 | param_named F0 float3 0.95 0.63 0.54
|
---|
| 37 | param_named_auto lightPosition light_position 0
|
---|
[777] | 38 |
|
---|
[825] | 39 | }
|
---|
[777] | 40 |
|
---|
[825] | 41 | //Cube map for reflections and refractions
|
---|
| 42 | texture_unit
|
---|
| 43 | {
|
---|
[835] | 44 | cubic_texture cubemap.jpg combinedUVW
|
---|
| 45 | tex_address_mode clamp
|
---|
| 46 | colour_op replace
|
---|
[825] | 47 | }
|
---|
[777] | 48 |
|
---|
[825] | 49 | //Cube map of distances
|
---|
| 50 | texture_unit
|
---|
| 51 | {
|
---|
[835] | 52 | cubic_texture cubemap.jpg combinedUVW
|
---|
| 53 | tex_address_mode clamp
|
---|
| 54 | colour_op replace
|
---|
[825] | 55 | }
|
---|
| 56 | }
|
---|
[777] | 57 | }
|
---|
| 58 | }
|
---|
| 59 |
|
---|
| 60 |
|
---|
| 61 | material EnvMetals/Gold
|
---|
| 62 | {
|
---|
| 63 |
|
---|
| 64 | technique
|
---|
| 65 | {
|
---|
| 66 | pass
|
---|
| 67 | {
|
---|
[825] | 68 |
|
---|
| 69 | IllumTechniques
|
---|
| 70 | {
|
---|
| 71 | RenderTechnique ColorCubeMap
|
---|
| 72 | {
|
---|
[835] | 73 | update_interval 0
|
---|
[825] | 74 | distance_calc true 1.5
|
---|
[835] | 75 | face_angle_calc true 1.5
|
---|
[825] | 76 | }
|
---|
[835] | 77 | RenderTechnique DistanceCubeMap
|
---|
| 78 | {
|
---|
| 79 | update_interval 0
|
---|
| 80 | distance_calc true 1.5
|
---|
| 81 | face_angle_calc true 1.5
|
---|
| 82 | }
|
---|
| 83 |
|
---|
[825] | 84 | }
|
---|
[777] | 85 | vertex_program_ref GameTools/CubeMap/VertexPrograms/LocalizedVS
|
---|
| 86 | {
|
---|
| 87 | param_named_auto worldViewProj worldviewproj_matrix
|
---|
| 88 | param_named_auto world world_matrix
|
---|
| 89 |
|
---|
| 90 | }
|
---|
| 91 | fragment_program_ref GameTools/CubeMap/FragmentPrograms/LocalizedMetalPS
|
---|
| 92 | {
|
---|
| 93 | param_named_auto cameraPos camera_position
|
---|
| 94 | //param_named n float3 0.16 0.35 1.6
|
---|
| 95 | //param_named k float3 3.98 2.71 1.92
|
---|
| 96 | param_named F0 float3 0.96 0.85 0.39
|
---|
| 97 | param_named_auto lightPosition light_position 0
|
---|
| 98 |
|
---|
| 99 | }
|
---|
| 100 |
|
---|
| 101 | //Cube map for reflections and refractions
|
---|
| 102 | texture_unit
|
---|
| 103 | {
|
---|
| 104 | cubic_texture cubemap.jpg combinedUVW
|
---|
| 105 | tex_address_mode clamp
|
---|
| 106 | colour_op replace
|
---|
| 107 | }
|
---|
| 108 |
|
---|
| 109 | //Cube map of distances
|
---|
| 110 | texture_unit
|
---|
| 111 | {
|
---|
| 112 | cubic_texture cubemap.jpg combinedUVW
|
---|
| 113 | tex_address_mode clamp
|
---|
| 114 | colour_op replace
|
---|
| 115 | }
|
---|
| 116 |
|
---|
| 117 |
|
---|
| 118 | }
|
---|
| 119 | }
|
---|
| 120 | }
|
---|
| 121 |
|
---|
| 122 |
|
---|
| 123 | material EnvMetals/Silver
|
---|
| 124 | {
|
---|
| 125 |
|
---|
| 126 | technique
|
---|
| 127 | {
|
---|
| 128 | pass
|
---|
| 129 | {
|
---|
[825] | 130 |
|
---|
| 131 | IllumTechniques
|
---|
| 132 | {
|
---|
| 133 | RenderTechnique ColorCubeMap
|
---|
| 134 | {
|
---|
[835] | 135 | update_interval 0
|
---|
[825] | 136 | distance_calc true 1.5
|
---|
[835] | 137 | face_angle_calc true 1.5
|
---|
[825] | 138 | }
|
---|
[835] | 139 | RenderTechnique DistanceCubeMap
|
---|
| 140 | {
|
---|
| 141 | update_interval 0
|
---|
| 142 | distance_calc true 1.5
|
---|
| 143 | face_angle_calc true 1.5
|
---|
| 144 | }
|
---|
| 145 |
|
---|
[825] | 146 | }
|
---|
[777] | 147 | vertex_program_ref GameTools/CubeMap/VertexPrograms/LocalizedVS
|
---|
| 148 | {
|
---|
| 149 | param_named_auto worldViewProj worldviewproj_matrix
|
---|
| 150 | param_named_auto world world_matrix
|
---|
| 151 |
|
---|
| 152 | }
|
---|
| 153 | fragment_program_ref GameTools/CubeMap/FragmentPrograms/LocalizedMetalPS
|
---|
| 154 | {
|
---|
| 155 | param_named_auto cameraPos camera_position
|
---|
| 156 | //param_named n float3 0.142 0.124 0.158
|
---|
| 157 | //param_named k float3 4.52 3.33 2.32
|
---|
| 158 | param_named F0 float3 0.97 0.95 0.9
|
---|
| 159 | param_named_auto lightPosition light_position 0
|
---|
| 160 |
|
---|
| 161 | }
|
---|
| 162 |
|
---|
| 163 | //Cube map for reflections and refractions
|
---|
| 164 | texture_unit
|
---|
| 165 | {
|
---|
| 166 | cubic_texture cubemap.jpg combinedUVW
|
---|
| 167 | tex_address_mode clamp
|
---|
| 168 | colour_op replace
|
---|
| 169 | }
|
---|
| 170 |
|
---|
| 171 | //Cube map of distances
|
---|
| 172 | texture_unit
|
---|
| 173 | {
|
---|
| 174 | cubic_texture cubemap.jpg combinedUVW
|
---|
| 175 | tex_address_mode clamp
|
---|
| 176 | colour_op replace
|
---|
| 177 | }
|
---|
| 178 |
|
---|
| 179 |
|
---|
| 180 | }
|
---|
| 181 | }
|
---|
| 182 | }
|
---|
| 183 |
|
---|
| 184 |
|
---|
| 185 | material EnvMetals/Alu
|
---|
| 186 | {
|
---|
| 187 |
|
---|
| 188 | technique
|
---|
| 189 | {
|
---|
| 190 | pass
|
---|
| 191 | {
|
---|
[825] | 192 |
|
---|
| 193 | IllumTechniques
|
---|
| 194 | {
|
---|
| 195 | RenderTechnique ColorCubeMap
|
---|
| 196 | {
|
---|
[835] | 197 | update_interval 0
|
---|
[825] | 198 | distance_calc true 1.5
|
---|
[835] | 199 | face_angle_calc true 3.5
|
---|
[825] | 200 | }
|
---|
[835] | 201 | RenderTechnique DistanceCubeMap
|
---|
| 202 | {
|
---|
| 203 | update_interval 0
|
---|
| 204 | distance_calc true 1.5
|
---|
| 205 | face_angle_calc true 3.5
|
---|
| 206 | }
|
---|
| 207 |
|
---|
[825] | 208 | }
|
---|
[835] | 209 |
|
---|
[777] | 210 | vertex_program_ref GameTools/CubeMap/VertexPrograms/LocalizedVS
|
---|
| 211 | {
|
---|
| 212 | param_named_auto worldViewProj worldviewproj_matrix
|
---|
| 213 | param_named_auto world world_matrix
|
---|
| 214 |
|
---|
| 215 | }
|
---|
| 216 | fragment_program_ref GameTools/CubeMap/FragmentPrograms/LocalizedMetalPS
|
---|
| 217 | {
|
---|
| 218 | param_named_auto cameraPos camera_position
|
---|
| 219 | //param_named n float3 1.83 0.96 0.577
|
---|
| 220 | //param_named k float3 8.31 6.69 5.288
|
---|
| 221 | param_named F0 float3 0.9 0.92 0.92
|
---|
| 222 | param_named_auto lightPosition light_position 0
|
---|
| 223 |
|
---|
| 224 | }
|
---|
| 225 |
|
---|
| 226 | //Cube map for reflections and refractions
|
---|
| 227 | texture_unit
|
---|
| 228 | {
|
---|
| 229 | cubic_texture cubemap.jpg combinedUVW
|
---|
| 230 | tex_address_mode clamp
|
---|
| 231 | colour_op replace
|
---|
| 232 | }
|
---|
| 233 |
|
---|
| 234 | //Cube map of distances
|
---|
| 235 | texture_unit
|
---|
| 236 | {
|
---|
| 237 | cubic_texture cubemap.jpg combinedUVW
|
---|
| 238 | tex_address_mode clamp
|
---|
| 239 | colour_op replace
|
---|
| 240 | }
|
---|
| 241 |
|
---|
| 242 |
|
---|
| 243 | }
|
---|
| 244 | }
|
---|
| 245 | } |
---|