source: GTP/branches/IllumWPdeliver2008dec/IlluminationWP/demos/OgreDemos/media/MORIA/GTPMoriaPostProc.material @ 3255

Revision 3255, 2.5 KB checked in by szirmay, 15 years ago (diff)
Line 
1material GTP/Moria/PostProc/GlowCut : GTP/PostProc/GlowCut
2{
3   technique maintechnique
4   {
5      pass mainpass
6      {
7        fragment_program_ref
8        {
9          param_named cutValue float 2.0
10          param_named timeBlur float 0.3               
11        }               
12      }
13   }
14}
15
16material GTP/Moria/GlowFinalCombine : GTP/PostProc/Combine
17{
18   technique maintechnique
19   {
20      pass mainpass
21      {
22                 fragment_program_ref GTP/PostProc/Combine_PS
23         {
24                param_named weight1 float 1.0
25                param_named weight2 float 0.35
26                 }     
27      }
28   }
29}
30
31material GTP/Moria/PostProc/GlowBlurH : GTP/PostProc/GlowBlurH
32{
33   technique maintechnique
34   {
35      pass mainpass
36      {
37         fragment_program_ref
38         {
39           param_named Stretch float 1.7           
40         }                             
41      }
42   }
43}
44
45material GTP/Moria/PostProc/GlowBlurV : GTP/PostProc/GlowBlurV
46{
47   technique maintechnique
48   {
49      pass mainpass
50      {
51         fragment_program_ref
52         {
53           param_named Stretch float 1.7               
54         }                       
55      }
56   }
57}
58
59
60fragment_program GTP/Moria/PostProc/DoF_PS hlsl
61{
62        source GTPMoriaPostProc.hlsl
63        entry_point DoF_PS
64        target ps_3_0
65}
66
67material GTP/Moria/PostProc/DoF
68{
69   technique
70   {
71      pass
72      {
73        vertex_program_ref GTP/PostProc/PostProc_VS
74        {
75       
76        }
77        fragment_program_ref GTP/Moria/PostProc/DoF_PS
78        {
79                        param_named_auto width viewport_width   
80                param_named_auto height viewport_height
81                        param_named focalDist  float 2.0
82                        param_named focalRange float 0.02
83                        param_named maxCoC     float 8
84               
85        }
86        texture_unit
87        {
88                filtering none
89                tex_address_mode clamp
90        }
91        texture_unit
92        {
93                filtering none
94                tex_address_mode clamp
95        }       
96      }
97   }
98}
99
100fragment_program GTP/Moria/PostProc/SampleCenter_PS hlsl
101{
102        source GTPMoriaPostProc.hlsl
103        entry_point sampleCenter_PS
104        target ps_2_0
105}
106
107material GTP/Moria/PostProc/SampleCenter
108{
109   technique
110   {
111      pass
112      {
113        scene_blend  alpha_blend
114        depth_dest off
115                vertex_program_ref GTP/PostProc/PostProc_VS
116        {
117       
118        }
119                fragment_program_ref GTP/Moria/PostProc/SampleCenter_PS
120        {
121                        param_named_auto blending frame_time 4.0                       
122        }
123        texture_unit
124        {
125                filtering none
126                tex_address_mode clamp
127        }               
128      }
129   }
130}
Note: See TracBrowser for help on using the repository browser.