- Timestamp:
- 11/08/06 14:03:40 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/App/Demos/Illum/Ogre/Media/materials/scripts/MetalTeapot.material
r1720 r1724 1 vertex_program DefaultVS hlsl 2 { 3 source MetalTeapot.hlsl 4 entry_point DefaultVS 5 target vs_2_0 6 } 7 8 fragment_program Metal1BouncePS hlsl 9 { 10 source MetalTeapot.hlsl 11 entry_point Metal1BouncePS 12 target ps_3_0 13 } 1 14 2 15 material MetalTeapot 3 16 { 4 5 17 technique 6 18 { … … 13 25 update_interval 0 14 26 distance_calc false 15 face_angle_calc false 16 render 27 face_angle_calc false 17 28 } 18 29 RenderTechnique DistanceCubeMap … … 24 35 25 36 } 26 vertex_program_ref GameTools/CubeMap/VertexPrograms/LocalizedVS37 vertex_program_ref DefaultVS 27 38 { 28 39 param_named_auto worldViewProj worldviewproj_matrix 29 40 param_named_auto world world_matrix 30 41 param_named_auto worldview worldview_matrix 42 param_named_auto worldI inverse_world_matrix 31 43 } 32 fragment_program_ref GameTools/CubeMap/FragmentPrograms/LocalizedMetalPS44 fragment_program_ref Metal1BouncePS 33 45 { 34 46 param_named_auto cameraPos camera_position 35 47 //param_named n float3 0.21 0.96 1.17 36 48 //param_named k float3 4.16 2.57 2.32 37 param_named F0 float3 0.95 0.63 0.54 38 param_named_auto lightPosition light_position 0 39 49 param_named F0 float3 0.95 0.63 0.54 40 50 } 41 51 … … 43 53 texture_unit 44 54 { 45 cubic_texture cubemap.jpg combinedUVW 46 tex_address_mode clamp 47 colour_op replace 55 48 56 } 49 57 … … 51 59 texture_unit 52 60 { 53 cubic_texture cubemap.jpg combinedUVW 54 tex_address_mode clamp 55 colour_op replace 61 56 62 } 57 63 } 58 64 } 59 65 } 66 67 fragment_program NormalDistancePS hlsl 68 { 69 source MetalTeapot.hlsl 70 entry_point NormalDistancePS 71 target ps_3_0 72 } 73 74 material NormalDistanceCW 75 { 76 technique 77 { 78 pass 79 { 80 cull_hardware clockwise 81 82 vertex_program_ref DefaultVS 83 { 84 param_named_auto worldViewProj worldviewproj_matrix 85 param_named_auto world world_matrix 86 param_named_auto worldview worldview_matrix 87 param_named_auto worldI inverse_world_matrix 88 } 89 fragment_program_ref NormalDistancePS 90 { 91 92 } 93 } 94 } 95 } 96 97 material NormalDistanceCCW 98 { 99 technique 100 { 101 pass 102 { 103 cull_hardware anticlockwise 104 vertex_program_ref DefaultVS 105 { 106 param_named_auto worldViewProj worldviewproj_matrix 107 param_named_auto world world_matrix 108 param_named_auto worldview worldview_matrix 109 param_named_auto worldI inverse_world_matrix 110 } 111 fragment_program_ref NormalDistancePS 112 { 113 114 } 115 } 116 } 117 } 118 119 fragment_program MetalMultipleBouncePS hlsl 120 { 121 source MetalTeapot.hlsl 122 entry_point MetalMultipleBouncePS 123 target ps_3_0 124 } 125 126 material MetalTeapotMultipleBounce 127 { 128 technique 129 { 130 pass 131 { 132 IllumTechniques 133 { 134 RenderTechnique ColorCubeMap 135 { 136 update_interval 0 137 distance_calc false 138 face_angle_calc false 139 } 140 RenderTechnique DistanceCubeMap 141 { 142 update_interval 0 143 distance_calc true false 144 face_angle_calc true false 145 } 146 RenderTechnique ColorCubeMap 147 { 148 layer 1 149 texture_unit_id 2 150 update_interval 0 151 distance_calc true false 152 face_angle_calc true false 153 render_env false 154 render_self true 155 self_material NormalDistanceCCW 156 } 157 RenderTechnique ColorCubeMap 158 { 159 layer 2 160 texture_unit_id 3 161 update_interval 0 162 distance_calc true false 163 face_angle_calc true false 164 render_env false 165 render_self true 166 self_material NormalDistanceCW 167 } 168 169 } 170 vertex_program_ref DefaultVS 171 { 172 param_named_auto worldViewProj worldviewproj_matrix 173 param_named_auto world world_matrix 174 param_named_auto worldview worldview_matrix 175 param_named_auto worldI inverse_world_matrix 176 177 } 178 fragment_program_ref MetalMultipleBouncePS 179 { 180 param_named_auto cameraPos camera_position 181 //param_named n float3 0.21 0.96 1.17 182 //param_named k float3 4.16 2.57 2.32 183 param_named F0 float3 0.95 0.95 0.95 184 } 185 186 //Cube map of environment 187 texture_unit 188 { 189 190 } 191 //Cube map of environment distances 192 texture_unit 193 { 194 195 } 196 197 //Cube map of reflective object's normals and distances CCW 198 texture_unit 199 { 200 201 } 202 203 //Cube map of reflective object's normals and distances CW 204 texture_unit 205 { 206 207 } 208 } 209 } 210 }
Note: See TracChangeset
for help on using the changeset viewer.