source: GTP/branches/IllumWPdeliver2008dec/IlluminationWP/demos/OgreGames/CarGame/Media/materials/scripts/GameTools_Glow.compositor @ 3255

Revision 3255, 1.7 KB checked in by szirmay, 15 years ago (diff)
Line 
1compositor GameTools/Glow
2{
3    technique
4    {
5        texture scene target_width target_height PF_FLOAT16_RGBA
6                texture cut 256 256 PF_FLOAT16_RGBA                     
7        texture rt0 256 256 PF_FLOAT16_RGBA       
8        texture rt1 256 256 PF_FLOAT16_RGBA
9        texture prev 256 256 PF_FLOAT16_RGBA
10   
11                target prev
12                {
13                        input none
14                        only_initial on
15                        pass render_quad
16                        {
17                                material GameTools/PostProcBlack                               
18                        }
19                }
20               
21        target scene
22        {
23            // Render output from previous compositor (or original scene)
24            input previous
25        }
26               
27       target cut
28        {
29            input none
30                       
31            pass render_quad
32            {
33                material GameTools/GlowCut
34                input 0 scene
35               input 1 prev
36            }
37        }
38        target rt0
39        {
40            input none
41         
42            pass render_quad
43            {
44                material GameTools/GlowBlurV
45                input 0 cut
46            }
47        }
48        target rt1
49        {
50            input none
51         
52            pass render_quad
53            {
54               material GameTools/GlowBlurH
55                input 0 rt0
56            }
57                }
58        target prev       
59        {
60                     input none
61                   
62           pass render_quad
63           {
64                                material GameTools/TextureCopy
65                                input 0 rt1
66                               
67           }
68       }
69     
70        target_output
71        {
72            input none
73         
74          pass render_quad
75            {
76               material GameTools/GlowAdd
77                input 0 scene
78                input 1 rt1
79            }
80        }
81    }
82}
Note: See TracBrowser for help on using the repository browser.