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

Revision 3255, 2.7 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.2           
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 8
83            //param_named maxCoC     float 26
84            param_named maxCoC     float 8
85           
86        }
87        texture_unit
88        {
89            filtering none
90            tex_address_mode clamp
91        }
92        texture_unit
93        {
94            filtering none
95            tex_address_mode clamp
96        }   
97      }
98   }
99}
100
101fragment_program GTP/Moria/PostProc/SampleCenter_PS hlsl
102{
103    source GTPMoriaPostProc.hlsl
104    entry_point sampleCenter_PS
105    target ps_2_0
106}
107
108material GTP/Moria/PostProc/SampleCenter
109{
110   technique
111   {
112      pass
113      {
114        scene_blend  alpha_blend
115        depth_dest off
116        vertex_program_ref GTP/PostProc/PostProc_VS
117        {
118       
119        }
120        fragment_program_ref GTP/Moria/PostProc/SampleCenter_PS
121        {
122            param_named_auto blending frame_time 4.0               
123        }
124        texture_unit
125        {
126            filtering none
127            tex_address_mode clamp
128        }           
129      }
130   }
131}
Note: See TracBrowser for help on using the repository browser.