Changeset 2386
- Timestamp:
- 05/16/07 15:30:33 (18 years ago)
- Location:
- GTP/trunk/App/Demos/Illum/Ogre/Media/MORIA
- Files:
-
- 5 added
- 1 deleted
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/App/Demos/Illum/Ogre/Media/MORIA/MoriaHallBase.hlsl
r2376 r2386 62 62 float2 atlasTex : TEXCOORD2, 63 63 float3 tangent : TEXCOORD3, 64 uniform float normalCoord) 64 uniform float normalCoord, 65 uniform float texture_repeat) 65 66 { 66 67 MORIA_HALL_BASE_VSOUT OUT = (MORIA_HALL_BASE_VSOUT) 0; 67 68 69 texCoord2.xy *= texture_repeat; 68 70 OUT.texCoord = float4(texCoord1.xy, texCoord2.xy); 69 71 if(normalCoord == 0) -
GTP/trunk/App/Demos/Illum/Ogre/Media/MORIA/moria.material
r2376 r2386 45 45 param_named_auto wCamPos camera_position 46 46 param_named normalCoord float 0 47 param_named texture_repeat float 1 47 48 } 48 49 fragment_program_ref GTP/MoriaDemo/MoriaHallBase_PS … … 117 118 { 118 119 param_named normalCoord float 1 120 param_named texture_repeat float 3 119 121 } 120 122 -
GTP/trunk/App/Demos/Illum/Ogre/Media/MORIA/troll.material
r2376 r2386 1 material phong222 {3 technique4 {5 pass6 {7 texture_unit8 {9 texture eyeball.jpg10 tex_coord_set 011 colour_op modulate12 }13 }14 }15 }16 material phong4417 {18 technique19 {20 pass21 {22 23 texture_unit24 {25 texture trollbody.png26 tex_coord_set 027 colour_op modulate28 }29 }30 }31 }32 material phong1133 {34 technique35 {36 pass37 {38 39 texture_unit40 {41 texture trollhead.png42 tex_coord_set 043 colour_op modulate44 }45 }46 }47 }48 49 1 vertex_program TrollSkinningOneWeight cg 50 2 { 51 source trollvs. hlsl3 source trollvs.cg 52 4 entry_point trollSkinning_One_Weight_vp 53 5 profiles vs_2_0 … … 57 9 vertex_program TrollSkinningSMGen cg 58 10 { 59 source trollvs. hlsl11 source trollvs.cg 60 12 entry_point trollSkinning_SMGen_One_Weight_vp 61 13 profiles vs_2_0 62 14 includes_skeletal_animation true 15 } 16 17 fragment_program TrollPS hlsl 18 { 19 source trollps.hlsl 20 entry_point Troll_PS 21 target ps_2_0 63 22 } 64 23 … … 122 81 param_named_auto worldMatrix3x4Array[0] world_matrix_array_3x4 123 82 param_named_auto viewProjectionMatrix viewproj_matrix 124 param_named_auto lightPos[0] light_position 0 125 param_named_auto lightPos[1] light_position 1 126 param_named_auto lightDiffuseColour[0] light_diffuse_colour 0 127 param_named_auto lightDiffuseColour[1] light_diffuse_colour 1 128 param_named_auto ambient ambient_light_colour 129 83 param_named_auto lightPos light_position 0 84 param_named_auto cameraPos camera_position 85 } 86 fragment_program_ref TrollPS 87 { 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 91 param_named specularity float 1 92 param_named specularColor float4 0.02 0.02 0.02 0.02 130 93 } 131 94 texture_unit basetexture 95 { 96 } 97 texture_unit bumptexture 132 98 { 133 99 } … … 144 110 { 145 111 texture eyeball.jpg 146 tex_coord_set 0147 colour_op modulate148 112 } 149 113 } … … 159 123 { 160 124 texture trollbody.png 161 tex_coord_set 0 162 colour_op modulate 125 } 126 texture_unit bumptexture 127 { 128 texture trollbodybump.png 163 129 } 164 130 } … … 174 140 { 175 141 texture trollhead.png 176 tex_coord_set 0 177 colour_op modulate 142 } 143 texture_unit bumptexture 144 { 145 texture trollheadbump.png 178 146 } 179 147 }
Note: See TracChangeset
for help on using the changeset viewer.