[2417] | 1 | vertex_program TrollSkinningOneWeight cg
|
---|
| 2 | {
|
---|
| 3 | source SkinningVS.cg
|
---|
| 4 | entry_point trollSkinning_One_Weight_vp
|
---|
| 5 | profiles vs_2_0
|
---|
| 6 | includes_skeletal_animation true
|
---|
| 7 | }
|
---|
| 8 |
|
---|
| 9 | vertex_program TrollSkinningSMGen cg
|
---|
| 10 | {
|
---|
| 11 | source SkinningVS.cg
|
---|
| 12 | entry_point trollSkinning_SMGen_One_Weight_vp
|
---|
| 13 | profiles vs_2_0
|
---|
| 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
|
---|
| 22 | }
|
---|
| 23 |
|
---|
| 24 |
|
---|
| 25 | material trollShadowMapGen_POINT
|
---|
| 26 | {
|
---|
| 27 | technique
|
---|
| 28 | {
|
---|
| 29 | pass
|
---|
| 30 | {
|
---|
| 31 | vertex_program_ref TrollSkinningSMGen
|
---|
| 32 | {
|
---|
| 33 | param_named_auto worldMatrix3x4Array[0] world_matrix_array_3x4
|
---|
| 34 | param_named_auto viewProjectionMatrix viewproj_matrix
|
---|
| 35 | param_named_auto viewMatrix view_matrix
|
---|
| 36 | }
|
---|
| 37 | fragment_program_ref GTP/Basic/CDistNorm_PS
|
---|
| 38 | {
|
---|
| 39 | param_named_auto farPlane far_clip_distance
|
---|
| 40 | }
|
---|
| 41 | }
|
---|
| 42 | }
|
---|
| 43 | }
|
---|
| 44 |
|
---|
| 45 | material trollCameraDepth
|
---|
| 46 | {
|
---|
| 47 | technique
|
---|
| 48 | {
|
---|
| 49 | pass
|
---|
| 50 | {
|
---|
| 51 | vertex_program_ref TrollSkinningSMGen
|
---|
| 52 | {
|
---|
| 53 | param_named_auto worldMatrix3x4Array[0] world_matrix_array_3x4
|
---|
| 54 | param_named_auto viewProjectionMatrix viewproj_matrix
|
---|
| 55 | param_named_auto viewMatrix view_matrix
|
---|
| 56 | }
|
---|
| 57 | fragment_program_ref GTP/Basic/CDepth_PS
|
---|
| 58 | {
|
---|
| 59 | param_named_auto farplane far_clip_distance
|
---|
| 60 | }
|
---|
| 61 | }
|
---|
| 62 | }
|
---|
| 63 | }
|
---|
| 64 |
|
---|
| 65 | material trollBase
|
---|
| 66 | {
|
---|
| 67 | technique maintechnique
|
---|
| 68 | {
|
---|
| 69 | pass mainpass
|
---|
| 70 | {
|
---|
| 71 | IllumTechniques
|
---|
| 72 | {
|
---|
| 73 | RenderTechnique Triggers
|
---|
| 74 | {
|
---|
| 75 | ILLUM_TRIGGER_SM_POINT trollShadowMapGen_POINT
|
---|
| 76 | ILLUM_TRIGGER_CAMERADEPTH trollCameraDepth
|
---|
| 77 | }
|
---|
| 78 | }
|
---|
| 79 | vertex_program_ref TrollSkinningOneWeight
|
---|
| 80 | {
|
---|
| 81 | param_named_auto worldMatrix3x4Array[0] world_matrix_array_3x4
|
---|
| 82 | param_named_auto viewProjectionMatrix viewproj_matrix
|
---|
| 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 200
|
---|
| 92 | param_named albedo float 0.1
|
---|
| 93 | param_named specularColor float4 0.0016 0.0015 0.001 0
|
---|
| 94 | }
|
---|
| 95 | texture_unit basetexture
|
---|
| 96 | {
|
---|
| 97 | }
|
---|
| 98 | texture_unit bumptexture
|
---|
| 99 | {
|
---|
| 100 | }
|
---|
| 101 | }
|
---|
| 102 | }
|
---|
| 103 | }
|
---|
| 104 | material phong2 : trollBase
|
---|
| 105 | {
|
---|
| 106 | technique maintechnique
|
---|
| 107 | {
|
---|
| 108 | pass mainpass
|
---|
| 109 | {
|
---|
| 110 | texture_unit basetexture
|
---|
| 111 | {
|
---|
| 112 | texture eyeball.jpg
|
---|
| 113 | }
|
---|
| 114 | }
|
---|
| 115 | }
|
---|
| 116 | }
|
---|
| 117 | material phong4 : trollBase
|
---|
| 118 | {
|
---|
| 119 | technique maintechnique
|
---|
| 120 | {
|
---|
| 121 | pass mainpass
|
---|
| 122 | {
|
---|
| 123 | texture_unit basetexture
|
---|
| 124 | {
|
---|
| 125 | texture trollbody.png
|
---|
| 126 | }
|
---|
| 127 | texture_unit bumptexture
|
---|
| 128 | {
|
---|
| 129 | texture trollbodybump.png
|
---|
| 130 | }
|
---|
| 131 | }
|
---|
| 132 | }
|
---|
| 133 | }
|
---|
| 134 | material phong1 : trollBase
|
---|
| 135 | {
|
---|
| 136 | technique maintechnique
|
---|
| 137 | {
|
---|
| 138 | pass mainpass
|
---|
| 139 | {
|
---|
| 140 | texture_unit basetexture
|
---|
| 141 | {
|
---|
| 142 | texture trollhead.png
|
---|
| 143 | }
|
---|
| 144 | texture_unit bumptexture
|
---|
| 145 | {
|
---|
| 146 | texture trollheadbump.png
|
---|
| 147 | }
|
---|
| 148 | }
|
---|
| 149 | }
|
---|
| 150 | }
|
---|
| 151 |
|
---|