- Timestamp:
- 05/12/07 14:22:06 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/App/Demos/Illum/Ogre/Media/MORIA/troll.material
r2336 r2368 1 material phong2 1 material phong22 2 2 { 3 3 technique … … 14 14 } 15 15 } 16 material phong4 16 material phong44 17 17 { 18 18 technique … … 30 30 } 31 31 } 32 material phong1 32 material phong11 33 33 { 34 34 technique … … 49 49 vertex_program TrollSkinningOneWeight cg 50 50 { 51 source trollvs. cg51 source trollvs.hlsl 52 52 entry_point trollSkinning_One_Weight_vp 53 53 profiles vs_2_0 … … 55 55 } 56 56 57 material phong22 57 vertex_program TrollSkinningSMGen cg 58 { 59 source trollvs.hlsl 60 entry_point trollSkinning_SMGen_One_Weight_vp 61 profiles vs_2_0 62 includes_skeletal_animation true 63 } 64 65 66 material trollShadowMapGen_POINT 58 67 { 59 68 technique … … 61 70 pass 62 71 { 63 ambient 1 1 1 1 64 diffuse 1 1 1 1 65 specular 0.5 0.5 0.5 20 66 emissive 0 0 0 67 72 vertex_program_ref TrollSkinningSMGen 73 { 74 param_named_auto worldMatrix3x4Array[0] world_matrix_array_3x4 75 param_named_auto viewProjectionMatrix viewproj_matrix 76 param_named_auto viewMatrix view_matrix 77 } 78 fragment_program_ref GTP/Basic/CDistNorm_PS 79 { 80 param_named_auto farPlane far_clip_distance 81 } 82 } 83 } 84 } 85 86 material trollBase 87 { 88 technique maintechnique 89 { 90 pass mainpass 91 { 92 IllumTechniques 93 { 94 RenderTechnique Triggers 95 { 96 ILLUM_TRIGGER_SM_POINT trollShadowMapGen_POINT 97 } 98 } 68 99 vertex_program_ref TrollSkinningOneWeight 69 100 { … … 77 108 78 109 } 79 // alternate shadow caster program 80 shadow_caster_vertex_program_ref Ogre/HardwareSkinningOneWeightShadowCaster 110 texture_unit basetexture 81 111 { 82 param_named_auto worldMatrix3x4Array[0] world_matrix_array_3x483 param_named_auto viewProjectionMatrix viewproj_matrix84 param_named_auto ambient ambient_light_colour85 86 112 } 87 88 texture_unit 113 } 114 } 115 } 116 material phong2 : trollBase 117 { 118 technique maintechnique 119 { 120 pass mainpass 121 { 122 texture_unit basetexture 89 123 { 90 124 texture eyeball.jpg … … 95 129 } 96 130 } 97 material phong4 4131 material phong4 : trollBase 98 132 { 99 technique 133 technique maintechnique 100 134 { 101 pass 102 { 103 104 vertex_program_ref TrollSkinningOneWeight 105 { 106 param_named_auto worldMatrix3x4Array[0] world_matrix_array_3x4 107 param_named_auto viewProjectionMatrix viewproj_matrix 108 param_named_auto lightPos[0] light_position 0 109 param_named_auto lightPos[1] light_position 1 110 param_named_auto lightDiffuseColour[0] light_diffuse_colour 0 111 param_named_auto lightDiffuseColour[1] light_diffuse_colour 1 112 param_named_auto ambient ambient_light_colour 113 114 } 115 // alternate shadow caster program 116 shadow_caster_vertex_program_ref Ogre/HardwareSkinningOneWeightShadowCaster 117 { 118 param_named_auto worldMatrix3x4Array[0] world_matrix_array_3x4 119 param_named_auto viewProjectionMatrix viewproj_matrix 120 param_named_auto ambient ambient_light_colour 121 122 } 123 124 texture_unit 135 pass mainpass 136 { 137 texture_unit basetexture 125 138 { 126 139 texture trollbody.png … … 131 144 } 132 145 } 133 material phong1 1146 material phong1 : trollBase 134 147 { 135 technique 148 technique maintechnique 136 149 { 137 pass 138 { 139 140 vertex_program_ref TrollSkinningOneWeight 141 { 142 param_named_auto worldMatrix3x4Array[0] world_matrix_array_3x4 143 param_named_auto viewProjectionMatrix viewproj_matrix 144 param_named_auto lightPos[0] light_position 0 145 param_named_auto lightPos[1] light_position 1 146 param_named_auto lightDiffuseColour[0] light_diffuse_colour 0 147 param_named_auto lightDiffuseColour[1] light_diffuse_colour 1 148 param_named_auto ambient ambient_light_colour 149 150 } 151 // alternate shadow caster program 152 shadow_caster_vertex_program_ref Ogre/HardwareSkinningOneWeightShadowCaster 153 { 154 param_named_auto worldMatrix3x4Array[0] world_matrix_array_3x4 155 param_named_auto viewProjectionMatrix viewproj_matrix 156 param_named_auto ambient ambient_light_colour 157 158 } 159 160 texture_unit 150 pass mainpass 151 { 152 texture_unit basetexture 161 153 { 162 154 texture trollhead.png
Note: See TracChangeset
for help on using the changeset viewer.