Rev | Line | |
---|
[2152] | 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 |
---|
| 25 | { |
---|
| 26 | pass |
---|
| 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 |
---|
[2157] | 36 | } |
---|
[2152] | 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 |
---|
| 44 | { |
---|
| 45 | texture stone.bmp |
---|
| 46 | tex_coord_set 0 |
---|
| 47 | colour_op replace |
---|
| 48 | } |
---|
| 49 | texture_unit |
---|
| 50 | { |
---|
| 51 | texture towerwall.bmp |
---|
| 52 | tex_coord_set 1 |
---|
| 53 | colour_op modulate |
---|
| 54 | } |
---|
| 55 | texture_unit |
---|
| 56 | { |
---|
| 57 | texture stoneNormal.dds |
---|
| 58 | tex_coord_set 0 |
---|
| 59 | } |
---|
| 60 | |
---|
| 61 | } |
---|
| 62 | |
---|
| 63 | } |
---|
| 64 | } |
---|
[2157] | 65 | |
---|
| 66 | material towermaterialBump |
---|
| 67 | { |
---|
| 68 | technique |
---|
| 69 | { |
---|
| 70 | pass |
---|
| 71 | { |
---|
| 72 | vertex_program_ref GTP/Demo/BumpMapped_VS |
---|
| 73 | { |
---|
| 74 | param_named_auto WorldViewProj worldviewproj_matrix |
---|
| 75 | param_named_auto World world_matrix |
---|
| 76 | param_named_auto WorldI inverse_world_matrix |
---|
| 77 | param_named_auto wLightPos light_position 0 |
---|
| 78 | param_named_auto wCamPos camera_position |
---|
| 79 | param_named textureRepeat float 6 |
---|
| 80 | } |
---|
| 81 | fragment_program_ref GTP/Demo/BumpMapped_PS |
---|
| 82 | { |
---|
| 83 | } |
---|
| 84 | texture_unit |
---|
| 85 | { |
---|
| 86 | texture stone.bmp |
---|
| 87 | tex_coord_set 0 |
---|
| 88 | colour_op replace |
---|
| 89 | } |
---|
| 90 | texture_unit |
---|
| 91 | { |
---|
| 92 | texture towerwall.bmp |
---|
| 93 | tex_coord_set 1 |
---|
| 94 | colour_op modulate |
---|
| 95 | } |
---|
| 96 | texture_unit |
---|
| 97 | { |
---|
| 98 | texture stoneNormal.dds |
---|
| 99 | tex_coord_set 0 |
---|
| 100 | } |
---|
| 101 | |
---|
| 102 | } |
---|
| 103 | |
---|
| 104 | } |
---|
| 105 | } |
---|
| 106 | |
---|
| 107 | material towermaterialNoBump |
---|
| 108 | { |
---|
| 109 | technique |
---|
| 110 | { |
---|
| 111 | pass |
---|
| 112 | { |
---|
| 113 | ambient 1 1 1 1 |
---|
| 114 | diffuse 1 1 1 1 |
---|
| 115 | specular 0 0 0 0 |
---|
| 116 | emissive 0 0 0 |
---|
| 117 | |
---|
| 118 | texture_unit |
---|
| 119 | { |
---|
| 120 | texture stone.bmp |
---|
| 121 | tex_coord_set 0 |
---|
| 122 | } |
---|
| 123 | texture_unit |
---|
| 124 | { |
---|
| 125 | texture towerwall.bmp |
---|
| 126 | tex_coord_set 1 |
---|
| 127 | colour_op modulate |
---|
| 128 | } |
---|
| 129 | } |
---|
| 130 | |
---|
| 131 | } |
---|
| 132 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.