Line | |
---|
1 | compositor GTP/PostProc/ToneMap
|
---|
2 | {
|
---|
3 | technique
|
---|
4 | {
|
---|
5 | texture scene target_width target_height PF_FLOAT16_RGBA
|
---|
6 | texture luminance target_width target_height PF_FLOAT16_RGBA
|
---|
7 | texture rt0 512 512 PF_FLOAT16_RGBA
|
---|
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
|
---|
17 | }
|
---|
18 | target luminance
|
---|
19 | {
|
---|
20 | input none
|
---|
21 | pass render_quad
|
---|
22 | {
|
---|
23 | material GTP/PostProc/Luminance
|
---|
24 | input 0 scene
|
---|
25 | }
|
---|
26 | }
|
---|
27 |
|
---|
28 |
|
---|
29 |
|
---|
30 | target rt0
|
---|
31 | {
|
---|
32 | input none
|
---|
33 | pass render_quad
|
---|
34 | {
|
---|
35 | material GTP/PostProc/GlowBlurV
|
---|
36 | input 0 luminance
|
---|
37 | }
|
---|
38 | }
|
---|
39 |
|
---|
40 | target rt1
|
---|
41 | {
|
---|
42 | input none
|
---|
43 | pass render_quad
|
---|
44 | {
|
---|
45 | material GTP/PostProc/GlowBlurH
|
---|
46 | input 0 rt0
|
---|
47 | }
|
---|
48 | }
|
---|
49 |
|
---|
50 | target rt2
|
---|
51 | {
|
---|
52 | input none
|
---|
53 | pass render_quad
|
---|
54 | {
|
---|
55 | material GTP/PostProc/GlowBlurV
|
---|
56 | input 0 rt1
|
---|
57 | }
|
---|
58 | }
|
---|
59 |
|
---|
60 | target rt3
|
---|
61 | {
|
---|
62 | input none
|
---|
63 | pass render_quad
|
---|
64 | {
|
---|
65 | material GTP/PostProc/GlowBlurH
|
---|
66 | input 0 rt2
|
---|
67 | }
|
---|
68 | }
|
---|
69 |
|
---|
70 | target rt4
|
---|
71 | {
|
---|
72 | input none
|
---|
73 | pass render_quad
|
---|
74 | {
|
---|
75 | material GTP/PostProc/GlowBlurV
|
---|
76 | input 0 rt3
|
---|
77 | }
|
---|
78 | }
|
---|
79 | target rt5
|
---|
80 | {
|
---|
81 | input none
|
---|
82 | only_initial on
|
---|
83 | pass clear
|
---|
84 | {
|
---|
85 | }
|
---|
86 | // pass render_quad
|
---|
87 | // {
|
---|
88 | // material GTP/PostProc/Black
|
---|
89 | // }
|
---|
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 | }
|
---|
104 | // target_output
|
---|
105 | // {
|
---|
106 | // input none
|
---|
107 | // pass render_quad
|
---|
108 | // {
|
---|
109 | // material GTP/PostProc/Copy
|
---|
110 | // input 0 rt5
|
---|
111 | // }
|
---|
112 | // }
|
---|
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
|
---|
122 | input 3 rt5
|
---|
123 | }
|
---|
124 | }
|
---|
125 | }
|
---|
126 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.