- Timestamp:
- 06/24/07 10:58:31 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/App/Demos/Illum/Ogre/Media/MORIA/troll.material
r2417 r2458 19 19 source trollps.hlsl 20 20 entry_point Troll_PS 21 target ps_ 2_021 target ps_3_0 22 22 } 23 23 … … 81 81 param_named_auto worldMatrix3x4Array[0] world_matrix_array_3x4 82 82 param_named_auto viewProjectionMatrix viewproj_matrix 83 param_named_auto lightPos light_position 0 83 param_named_auto lightPos1 light_position 0 84 param_named_auto lightPos2 light_position 1 84 85 param_named_auto cameraPos camera_position 85 86 } 86 87 fragment_program_ref TrollPS 87 88 { 88 param_named_auto lightRange light_attenuation 0 89 param_named_auto lightPower light_power 0 90 param_named_auto lightColor light_diffuse_colour 0 89 param_named_auto lightRange1 light_attenuation 0 90 param_named_auto lightPower1 light_power 0 91 param_named_auto lightColor1 light_diffuse_colour 0 92 param_named_auto lightRange2 light_attenuation 1 93 param_named_auto lightPower2 light_power 1 94 param_named_auto lightColor2 light_diffuse_colour 1 91 95 param_named specularity float 200 92 96 param_named albedo float 0.1 … … 150 154 } 151 155 156 vertex_program GTP/Troll/Mace_VS hlsl 157 { 158 source sword.hlsl 159 entry_point Sword_VS 160 target vs_2_0 161 } 162 fragment_program GTP/Troll/Mace_PS hlsl 163 { 164 source sword.hlsl 165 entry_point Sword_Handle_PS 166 target ps_3_0 167 } 168 169 material TrollMace 170 { 171 technique 172 { 173 pass 174 { 175 vertex_program_ref GTP/Troll/Mace_VS 176 { 177 param_named_auto WorldViewProj worldviewproj_matrix 178 param_named_auto World world_matrix 179 param_named_auto WorldI inverse_world_matrix 180 param_named_auto wCamPos camera_position 181 } 182 fragment_program_ref GTP/Troll/Mace_PS 183 { 184 param_named_auto wLightPos1 light_position 0 185 // param_named_auto wLightPos2 light_position 1 186 param_named_auto lightRange1 light_attenuation 0 187 // param_named_auto lightRange2 light_attenuation 1 188 param_named_auto lightPower1 light_power 0 189 // param_named_auto lightPower2 light_power 1 190 param_named_auto lightColor1 light_diffuse_colour 0 191 // param_named_auto lightColor2 light_diffuse_colour 1 192 param_named specularity float 100 193 param_named specularColor float4 0.05 0.05 0.05 0.05 194 } 195 texture_unit 196 { 197 texture trollmace.jpg 198 } 199 } 200 } 201 } 202 203
Note: See TracChangeset
for help on using the changeset viewer.