- Timestamp:
- 10/09/06 21:27:06 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/App/Demos/Illum/Ogre/Media/materials/scripts/Diffuse.material
r1525 r1590 72 72 fragment_program_ref GameTools/DiffusePS 73 73 { 74 param_named_auto cameraPos camera_position75 74 param_named REDUCED_CUBEMAP_SIZE int 8 76 75 param_named lastCenter float3 0 0 0 … … 112 111 } 113 112 113 114 114 115 material GameTools/Diffuse/use 115 116 { … … 146 147 fragment_program_ref Diffuse2PS 147 148 { 148 param_named_auto cameraPos camera_position149 param_named REDUCED_CUBEMAP_SIZE int 4150 149 param_named lastCenter float3 0 0 0 151 param_named_auto world_IT inverse_transpose_world_matrix152 150 } 153 151 … … 170 168 } 171 169 } 170 171 172 fragment_program DiffuseP2PPS hlsl 173 { 174 source GameTools_Diffuse.hlsl 175 entry_point EnvMapDiffuseP2PPS 176 target ps_3_0 177 } 178 179 material GameTools/Diffuse/use1 180 { 181 technique 182 { 183 pass 184 { 185 186 IllumTechniques 187 { 188 RenderTechnique DistanceCubeMap 189 { 190 update_interval 1 191 distance_calc false 192 face_angle_calc false 193 update_all_face true 194 } 195 RenderTechnique ReducedColorCubeMap 196 { 197 update_interval 1 198 reduced_resolution 4 199 resolution 128 200 distance_calc false 201 face_angle_calc false 202 update_all_face true 203 } 204 } 205 206 207 vertex_program_ref Diffuse2VS 208 { 209 param_named_auto worldViewProj worldviewproj_matrix 210 param_named_auto world world_matrix 211 212 } 213 fragment_program_ref DiffuseP2PPS 214 { 215 param_named REDUCED_CUBEMAP_SIZE int 4 216 param_named lastCenter float3 0 0 0 217 } 218 219 //Cube map for reflections and refractions 220 texture_unit 221 { 222 cubic_texture cubemap.jpg combinedUVW 223 tex_address_mode clamp 224 colour_op replace 225 } 226 227 //Cube map of distances 228 texture_unit 229 { 230 cubic_texture cubemap.jpg combinedUVW 231 tex_address_mode clamp 232 colour_op replace 233 } 234 } 235 } 236 }
Note: See TracChangeset
for help on using the changeset viewer.