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 |
---|
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 |
---|
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 | tex_coord_set 1 |
---|
76 | colour_op modulate |
---|
77 | } |
---|
78 | } |
---|
79 | |
---|
80 | } |
---|
81 | } |
---|
82 | |
---|
83 | material towermaterialBump |
---|
84 | { |
---|
85 | technique |
---|
86 | { |
---|
87 | pass |
---|
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 |
---|
102 | { |
---|
103 | texture stone.bmp |
---|
104 | tex_coord_set 0 |
---|
105 | colour_op replace |
---|
106 | } |
---|
107 | texture_unit |
---|
108 | { |
---|
109 | texture towerdetail.bmp |
---|
110 | tex_coord_set 1 |
---|
111 | colour_op modulate |
---|
112 | } |
---|
113 | texture_unit |
---|
114 | { |
---|
115 | texture stoneNormal.dds |
---|
116 | tex_coord_set 0 |
---|
117 | } |
---|
118 | |
---|
119 | } |
---|
120 | |
---|
121 | } |
---|
122 | } |
---|
123 | |
---|