source: GTP/trunk/App/Demos/Illum/Ogre/Media/Demo/tower.material @ 2152

Revision 2152, 1.3 KB checked in by szirmay, 17 years ago (diff)
Line 
1vertex_program GTP/Demo/BumpMapped_VS hlsl
2{
3   source bump.hlsl
4   entry_point BaseVS
5   target vs_2_0
6}
7
8fragment_program GTP/Demo/BumpMapped_PS hlsl
9{
10   source bump.hlsl
11   entry_point BumpPS
12   target ps_2_0
13}
14
15fragment_program GTP/Demo/ParallaxMapped_PS hlsl
16{
17   source parallax.hlsl
18   entry_point ParallaxSlopeIterationPS
19   target ps_3_0
20}
21
22material towermaterial
23{
24        technique
25        {
26            pass
27                {
28                        lighing off
29                        ambient 1 1 1 1
30                        diffuse 1 1 1 1
31                        specular 0 0 0 0
32                        emissive 0 0 0
33                       
34                        vertex_program_ref GTP/Demo/BumpMapped_VS
35                        {
36                          param_named_auto WorldViewProj worldviewproj_matrix 
37                          param_named_auto World world_matrix
38                          param_named_auto WorldI inverse_world_matrix
39                          param_named_auto wLightPos light_position 0
40                          param_named_auto wCamPos camera_position
41                          param_named textureRepeat float 6
42                        }
43                        fragment_program_ref GTP/Demo/ParallaxMapped_PS
44                        {
45                         param_named HEIGHT_SCALE float 0.16
46                         param_named HEIGHT_BIAS float -0.04
47                         param_named textureRepeat float 6
48                        }
49                        texture_unit
50                        {
51                         texture stone.bmp
52                         tex_coord_set 0
53                         colour_op replace
54                        }
55                        texture_unit
56                        {
57                         texture towerwall.bmp
58                         tex_coord_set 1
59                         colour_op modulate
60                        }
61                        texture_unit
62                        {
63                         texture stoneNormal.dds
64                         tex_coord_set 0
65                        }
66                       
67                }
68       
69        }
70}
Note: See TracBrowser for help on using the repository browser.