[2186] | 1 | vertex_program GTP/Demo/BumpMapped_VS hlsl |
---|
| 2 | { |
---|
| 3 | source bump.hlsl |
---|
| 4 | entry_point BaseVS |
---|
| 5 | target vs_2_0 |
---|
| 6 | } |
---|
| 7 | |
---|
| 8 | fragment_program GTP/Demo/BumpMapped_PS hlsl |
---|
| 9 | { |
---|
| 10 | source bump.hlsl |
---|
| 11 | entry_point BumpPS |
---|
| 12 | target ps_2_0 |
---|
| 13 | } |
---|
| 14 | |
---|
| 15 | fragment_program GTP/Demo/ParallaxMapped_PS hlsl |
---|
| 16 | { |
---|
| 17 | source parallax.hlsl |
---|
| 18 | entry_point ParallaxSlopeIterationPS |
---|
| 19 | target ps_3_0 |
---|
| 20 | } |
---|
| 21 | |
---|
| 22 | material towermaterial |
---|
| 23 | { |
---|
| 24 | technique maintechnique |
---|
| 25 | { |
---|
| 26 | pass mainpass |
---|
| 27 | { |
---|
| 28 | vertex_program_ref GTP/Demo/BumpMapped_VS |
---|
| 29 | { |
---|
| 30 | param_named_auto WorldViewProj worldviewproj_matrix |
---|
| 31 | param_named_auto World world_matrix |
---|
| 32 | param_named_auto WorldI inverse_world_matrix |
---|
| 33 | param_named_auto wLightPos light_position 0 |
---|
| 34 | param_named_auto wCamPos camera_position |
---|
| 35 | param_named textureRepeat float 6 |
---|
| 36 | } |
---|
| 37 | fragment_program_ref GTP/Demo/ParallaxMapped_PS |
---|
| 38 | { |
---|
| 39 | param_named HEIGHT_SCALE float 0.16 |
---|
| 40 | param_named HEIGHT_BIAS float -0.04 |
---|
| 41 | param_named textureRepeat float 6 |
---|
| 42 | } |
---|
| 43 | texture_unit color |
---|
| 44 | { |
---|
| 45 | texture stone.bmp |
---|
| 46 | tex_coord_set 0 |
---|
| 47 | colour_op replace |
---|
| 48 | } |
---|
| 49 | texture_unit detail |
---|
| 50 | { |
---|
| 51 | texture towerdetailgrey.bmp |
---|
| 52 | tex_coord_set 1 |
---|
| 53 | colour_op modulate |
---|
| 54 | } |
---|
| 55 | texture_unit bump |
---|
| 56 | { |
---|
| 57 | texture stoneNormal.dds |
---|
| 58 | tex_coord_set 0 |
---|
| 59 | } |
---|
| 60 | |
---|
| 61 | } |
---|
| 62 | |
---|
| 63 | } |
---|
| 64 | } |
---|
| 65 | |
---|
| 66 | material wallmaterial : towermaterial |
---|
| 67 | { |
---|
| 68 | technique maintechnique |
---|
| 69 | { |
---|
| 70 | pass mainpass |
---|
| 71 | { |
---|
| 72 | texture_unit detail |
---|
| 73 | { |
---|
| 74 | texture walldetailgrey.bmp |
---|
| 75 | } |
---|
| 76 | } |
---|
| 77 | |
---|
| 78 | } |
---|
| 79 | } |
---|
| 80 | |
---|
| 81 | |
---|
| 82 | |
---|
| 83 | material towermaterialBump |
---|
| 84 | { |
---|
| 85 | technique maintechnique |
---|
| 86 | { |
---|
| 87 | pass mainpass |
---|
| 88 | { |
---|
| 89 | vertex_program_ref GTP/Demo/BumpMapped_VS |
---|
| 90 | { |
---|
| 91 | param_named_auto WorldViewProj worldviewproj_matrix |
---|
| 92 | param_named_auto World world_matrix |
---|
| 93 | param_named_auto WorldI inverse_world_matrix |
---|
| 94 | param_named_auto wLightPos light_position 0 |
---|
| 95 | param_named_auto wCamPos camera_position |
---|
| 96 | param_named textureRepeat float 6 |
---|
| 97 | } |
---|
| 98 | fragment_program_ref GTP/Demo/BumpMapped_PS |
---|
| 99 | { |
---|
| 100 | } |
---|
| 101 | texture_unit color |
---|
| 102 | { |
---|
| 103 | texture stone.bmp |
---|
| 104 | tex_coord_set 0 |
---|
| 105 | colour_op replace |
---|
| 106 | } |
---|
| 107 | texture_unit detail |
---|
| 108 | { |
---|
| 109 | texture towerdetail.bmp |
---|
| 110 | tex_coord_set 1 |
---|
| 111 | colour_op modulate |
---|
| 112 | } |
---|
| 113 | texture_unit bump |
---|
| 114 | { |
---|
| 115 | texture stoneNormal.dds |
---|
| 116 | tex_coord_set 0 |
---|
| 117 | } |
---|
| 118 | |
---|
| 119 | } |
---|
| 120 | |
---|
| 121 | } |
---|
| 122 | } |
---|
| 123 | |
---|
| 124 | material pillarmaterial |
---|
| 125 | { |
---|
| 126 | technique maintechnique |
---|
| 127 | { |
---|
| 128 | pass mainpass |
---|
| 129 | { |
---|
| 130 | vertex_program_ref GTP/Demo/BumpMapped_VS |
---|
| 131 | { |
---|
| 132 | param_named_auto WorldViewProj worldviewproj_matrix |
---|
| 133 | param_named_auto World world_matrix |
---|
| 134 | param_named_auto WorldI inverse_world_matrix |
---|
| 135 | param_named_auto wLightPos light_position 0 |
---|
| 136 | param_named_auto wCamPos camera_position |
---|
| 137 | param_named textureRepeat float 1 |
---|
| 138 | } |
---|
| 139 | fragment_program_ref GTP/Demo/BumpMapped_PS |
---|
| 140 | { |
---|
| 141 | param_named HEIGHT_SCALE float -0.005 |
---|
| 142 | param_named HEIGHT_BIAS float 0.00 |
---|
| 143 | param_named textureRepeat float 1 |
---|
| 144 | } |
---|
| 145 | texture_unit color |
---|
| 146 | { |
---|
| 147 | texture pillarcolor.bmp |
---|
| 148 | colour_op modulate |
---|
| 149 | } |
---|
| 150 | texture_unit detail |
---|
| 151 | { |
---|
| 152 | texture grounddetail.bmp |
---|
| 153 | colour_op modulate |
---|
| 154 | } |
---|
| 155 | texture_unit bump |
---|
| 156 | { |
---|
| 157 | texture pillarbump.dds |
---|
| 158 | } |
---|
| 159 | } |
---|
| 160 | |
---|
| 161 | } |
---|
| 162 | } |
---|
| 163 | |
---|
| 164 | material groundmaterial : towermaterialBump |
---|
| 165 | { |
---|
| 166 | technique maintechnique |
---|
| 167 | { |
---|
| 168 | pass mainpass |
---|
| 169 | { |
---|
| 170 | IllumTechniques |
---|
| 171 | { |
---|
[2284] | 172 | RenderTechnique DepthShadowReceiver |
---|
[2186] | 173 | { |
---|
| 174 | max_light_count 1 |
---|
| 175 | vertex_program_name GTP/Basic/LightVPos_VS |
---|
[2295] | 176 | fragment_program_name GTP/Basic/SM/Depth_PS |
---|
| 177 | set_light_viewproj true |
---|
[2186] | 178 | set_light_view false |
---|
| 179 | set_light_farplane false |
---|
| 180 | world_view_proj_param_name WorldViewProj |
---|
| 181 | world_param_name World |
---|
| 182 | light_viewproj_param_name LightViewProj |
---|
| 183 | } |
---|
| 184 | } |
---|
| 185 | |
---|
| 186 | vertex_program_ref GTP/Demo/BumpMapped_VS |
---|
| 187 | { |
---|
| 188 | param_named_auto WorldViewProj worldviewproj_matrix |
---|
| 189 | param_named_auto World world_matrix |
---|
| 190 | param_named_auto WorldI inverse_world_matrix |
---|
| 191 | param_named_auto wLightPos light_position 0 |
---|
| 192 | param_named_auto wCamPos camera_position |
---|
| 193 | param_named textureRepeat float 50 |
---|
| 194 | } |
---|
| 195 | fragment_program_ref GTP/Demo/BumpMapped_PS |
---|
| 196 | { |
---|
| 197 | param_named HEIGHT_SCALE float 0.16 |
---|
| 198 | param_named HEIGHT_BIAS float -0.04 |
---|
| 199 | param_named textureRepeat float 50 |
---|
| 200 | } |
---|
| 201 | texture_unit color |
---|
| 202 | { |
---|
| 203 | texture ground3.bmp |
---|
| 204 | colour_op modulate |
---|
| 205 | } |
---|
| 206 | texture_unit detail |
---|
| 207 | { |
---|
| 208 | texture grounddetail.bmp |
---|
| 209 | colour_op modulate |
---|
| 210 | } |
---|
| 211 | texture_unit bump |
---|
| 212 | { |
---|
| 213 | texture groundbump.dds |
---|
| 214 | } |
---|
| 215 | } |
---|
| 216 | |
---|
| 217 | } |
---|
| 218 | } |
---|