source:
GTP/trunk/App/Demos/Illum/Ogre/Media/materials/GTPPostProc/GTPToneMap.compositor
@
2398
Revision 2398, 2.7 KB checked in by szirmay, 17 years ago (diff) |
---|
Rev | Line | |
---|---|---|
[2024] | 1 | compositor GTP/PostProc/ToneMap |
2 | { | |
3 | technique | |
4 | { | |
5 | texture scene target_width target_height PF_FLOAT16_RGBA | |
[2398] | 6 | texture luminance target_width target_height PF_FLOAT16_RGBA |
7 | texture rt0 512 512 PF_FLOAT16_RGBA | |
[2024] | 8 | texture rt1 256 256 PF_FLOAT16_RGBA |
9 | texture rt2 128 128 PF_FLOAT16_RGBA | |
10 | texture rt3 32 32 PF_FLOAT16_RGBA | |
11 | texture rt4 8 8 PF_FLOAT16_RGBA | |
12 | texture rt5 2 2 PF_FLOAT16_RGBA | |
13 | ||
14 | target scene | |
15 | { | |
16 | input previous | |
[2398] | 17 | } |
[2024] | 18 | target luminance |
19 | { | |
20 | input none | |
21 | pass render_quad | |
22 | { | |
23 | material GTP/PostProc/Luminance | |
24 | input 0 scene | |
25 | } | |
26 | } | |
[2398] | 27 | |
28 | ||
29 | ||
[2024] | 30 | target rt0 |
31 | { | |
32 | input none | |
[2398] | 33 | pass render_quad |
[2024] | 34 | { |
[2398] | 35 | material GTP/PostProc/GlowBlurV |
36 | input 0 luminance | |
[2024] | 37 | } |
[2398] | 38 | } |
39 | ||
[2024] | 40 | target rt1 |
41 | { | |
42 | input none | |
[2398] | 43 | pass render_quad |
[2024] | 44 | { |
45 | material GTP/PostProc/GlowBlurH | |
[2398] | 46 | input 0 rt0 |
[2024] | 47 | } |
48 | } | |
[2398] | 49 | |
[2024] | 50 | target rt2 |
51 | { | |
52 | input none | |
53 | pass render_quad | |
54 | { | |
55 | material GTP/PostProc/GlowBlurV | |
56 | input 0 rt1 | |
57 | } | |
58 | } | |
[2398] | 59 | |
[2024] | 60 | target rt3 |
61 | { | |
62 | input none | |
63 | pass render_quad | |
64 | { | |
65 | material GTP/PostProc/GlowBlurH | |
66 | input 0 rt2 | |
67 | } | |
68 | } | |
[2398] | 69 | |
[2024] | 70 | target rt4 |
71 | { | |
72 | input none | |
73 | pass render_quad | |
74 | { | |
75 | material GTP/PostProc/GlowBlurV | |
76 | input 0 rt3 | |
[2398] | 77 | } |
78 | } | |
[2024] | 79 | target rt5 |
80 | { | |
81 | input none | |
82 | only_initial on | |
83 | pass clear | |
84 | { | |
85 | } | |
[2398] | 86 | // pass render_quad |
87 | // { | |
88 | // material GTP/PostProc/Black | |
89 | // } | |
[2024] | 90 | } |
91 | target rt5 | |
92 | { | |
93 | input none | |
94 | pass render_quad | |
95 | { | |
96 | clear | |
97 | { | |
98 | buffers depth | |
99 | } | |
100 | material GTP/PostProc/GlowBlurH_TB | |
101 | input 0 rt4 | |
102 | } | |
103 | } | |
[2398] | 104 | // target_output |
105 | // { | |
106 | // input none | |
107 | // pass render_quad | |
108 | // { | |
109 | // material GTP/PostProc/Copy | |
110 | // input 0 rt5 | |
111 | // } | |
112 | // } | |
[2024] | 113 | target_output |
114 | { | |
115 | input none | |
116 | pass render_quad | |
117 | { | |
118 | material GTP/PostProc/ToneMap | |
119 | input 0 scene | |
120 | input 1 rt1 | |
121 | input 2 luminance | |
[2398] | 122 | input 3 rt5 |
[2024] | 123 | } |
124 | } | |
125 | } | |
126 | } |
Note: See TracBrowser
for help on using the repository browser.