source: GTP/branches/IllumWPdeliver2008dec/IlluminationWP/precompiled/app/OgreIllumModule_Resources/materials/GTPPostProc/GTPGlow.compositor @ 3255

Revision 3255, 1.6 KB checked in by szirmay, 15 years ago (diff)
Line 
1compositor GTP/PostProc/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 GTP/PostProc/Black                         
18          }
19        }               
20        target scene
21        {
22            // Render output from previous compositor (or original scene)
23            input previous
24        }               
25        target cut
26        {
27            input none                 
28            pass render_quad
29            {
30               material GTP/PostProc/GlowCut
31               input 0 scene
32               input 1 prev
33            }
34        }
35        target rt0
36        {
37            input none         
38            pass render_quad
39            {
40                material GTP/PostProc/GlowBlurV
41                input 0 cut
42            }
43        }
44        target rt1
45        {
46            input none         
47            pass render_quad
48            {
49               material GTP/PostProc/GlowBlurH
50               input 0 rt0
51            }
52        }
53        target prev       
54        {
55           input none               
56           pass render_quad
57           {
58                material GTP/PostProc/Copy
59                input 0 rt1                             
60           }
61       }     
62       target_output
63       {
64         input none         
65         pass render_quad
66         {
67               material GTP/PostProc/Add
68               input 0 scene
69               input 1 rt1
70         }
71       }
72    }
73}
Note: See TracBrowser for help on using the repository browser.