Changeset 825 for GTP/trunk/App
- Timestamp:
- 04/26/06 11:02:20 (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/App/Demos/Illum/Ogre/Media/materials/scripts/EnvMetals.material
r777 r825 7 7 pass 8 8 { 9 vertex_program_ref GameTools/CubeMap/VertexPrograms/LocalizedVS 10 { 11 param_named_auto worldViewProj worldviewproj_matrix 12 param_named_auto world world_matrix 13 14 } 15 fragment_program_ref GameTools/CubeMap/FragmentPrograms/LocalizedMetalPS 16 { 17 param_named_auto cameraPos camera_position 18 //param_named n float3 0.21 0.96 1.17 19 //param_named k float3 4.16 2.57 2.32 20 param_named F0 float3 0.95 0.63 0.54 21 param_named_auto lightPosition light_position 0 22 23 } 24 25 //Cube map for reflections and refractions 26 texture_unit 27 { 28 cubic_texture cubemap.jpg combinedUVW 29 tex_address_mode clamp 30 colour_op replace 31 } 32 33 //Cube map of distances 34 texture_unit 35 { 36 cubic_texture cubemap.jpg combinedUVW 37 tex_address_mode clamp 38 colour_op replace 39 } 40 41 42 } 9 IllumTechniques 10 { 11 RenderTechnique ColorCubeMap 12 { 13 start_frame 0 14 distance_calc true 1.5 15 16 } 17 } 18 vertex_program_ref GameTools/CubeMap/VertexPrograms/LocalizedVS 19 { 20 param_named_auto worldViewProj worldviewproj_matrix 21 param_named_auto world world_matrix 22 23 } 24 fragment_program_ref GameTools/CubeMap/FragmentPrograms/LocalizedMetalPS 25 { 26 param_named_auto cameraPos camera_position 27 //param_named n float3 0.21 0.96 1.17 28 //param_named k float3 4.16 2.57 2.32 29 param_named F0 float3 0.95 0.63 0.54 30 param_named_auto lightPosition light_position 0 31 32 } 33 34 //Cube map for reflections and refractions 35 texture_unit 36 { 37 cubic_texture cubemap.jpg combinedUVW 38 tex_address_mode clamp 39 colour_op replace 40 } 41 42 //Cube map of distances 43 texture_unit 44 { 45 cubic_texture cubemap.jpg combinedUVW 46 tex_address_mode clamp 47 colour_op replace 48 } 49 } 43 50 } 44 51 } … … 52 59 pass 53 60 { 61 62 IllumTechniques 63 { 64 RenderTechnique ColorCubeMap 65 { 66 start_frame 0 67 distance_calc true 1.5 68 69 } 70 } 54 71 vertex_program_ref GameTools/CubeMap/VertexPrograms/LocalizedVS 55 72 { … … 97 114 pass 98 115 { 116 117 IllumTechniques 118 { 119 RenderTechnique ColorCubeMap 120 { 121 start_frame 0 122 distance_calc true 1.5 123 124 } 125 } 99 126 vertex_program_ref GameTools/CubeMap/VertexPrograms/LocalizedVS 100 127 { … … 142 169 pass 143 170 { 171 172 IllumTechniques 173 { 174 RenderTechnique ColorCubeMap 175 { 176 start_frame 0 177 distance_calc true 1.5 178 179 } 180 } 144 181 vertex_program_ref GameTools/CubeMap/VertexPrograms/LocalizedVS 145 182 {
Note: See TracChangeset
for help on using the changeset viewer.