- Timestamp:
- 10/23/06 23:28:16 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/App/Demos/Illum/Ogre/Media/materials/scripts/Diffuse.material
r1638 r1671 157 157 texture_unit 158 158 { 159 cubic_texture cubemap.jpg combinedUVW 160 tex_address_mode clamp 161 colour_op replace 159 162 160 } 163 161 … … 165 163 texture_unit 166 164 { 167 cubic_texture cubemap.jpg combinedUVW 168 tex_address_mode clamp 169 colour_op replace 165 170 166 } 171 167 } … … 173 169 } 174 170 171 vertex_program DiffuseBumpVS hlsl 172 { 173 source GameTools_Diffuse.hlsl 174 entry_point DiffuseBumpVS 175 target vs_3_0 176 } 177 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 } 175 245 176 246 fragment_program DiffuseP2PPS hlsl … … 181 251 } 182 252 183 material GameTools/Diffuse /use1253 material GameTools/DiffuseP2P 184 254 { 185 255 technique … … 193 263 { 194 264 update_interval 1 265 resolution 128 195 266 distance_calc false 196 267 face_angle_calc false … … 211 282 vertex_program_ref Diffuse2VS 212 283 { 213 214 param_named_auto world 215 284 param_named_auto worldViewProj worldviewproj_matrix 285 param_named_auto worldI inverse_world_matrix 286 param_named_auto world world_matrix 216 287 } 217 288 fragment_program_ref DiffuseP2PPS 218 289 { 219 param_named REDUCED_CUBEMAP_SIZE int 4220 290 param_named lastCenter float3 0 0 0 221 291 } … … 224 294 texture_unit 225 295 { 226 cubic_texture cubemap.jpg combinedUVW 227 tex_address_mode clamp 228 colour_op replace 296 229 297 } 230 298 … … 232 300 texture_unit 233 301 { 234 cubic_texture cubemap.jpg combinedUVW 235 tex_address_mode clamp 236 colour_op replace 302 237 303 } 238 304 }
Note: See TracChangeset
for help on using the changeset viewer.