Line | |
---|
1 | compositor GameTools/ToneMap
|
---|
2 | {
|
---|
3 | technique
|
---|
4 | {
|
---|
5 | texture scene target_width target_height PF_FLOAT16_RGBA
|
---|
6 | texture luminance 256 256 PF_FLOAT16_RGBA
|
---|
7 | texture rt0 256 256 PF_FLOAT16_RGBA
|
---|
8 | texture rt1 256 256 PF_FLOAT16_RGBA
|
---|
9 |
|
---|
10 | target scene
|
---|
11 | {
|
---|
12 | // Render output from previous compositor (or original scene)
|
---|
13 | input previous
|
---|
14 | }
|
---|
15 | target luminance
|
---|
16 | {
|
---|
17 | input none
|
---|
18 |
|
---|
19 | pass render_quad
|
---|
20 | {
|
---|
21 | material GameTools/Luminance
|
---|
22 | input 0 scene
|
---|
23 | }
|
---|
24 | }
|
---|
25 | target rt0
|
---|
26 | {
|
---|
27 | input none
|
---|
28 |
|
---|
29 | pass render_quad
|
---|
30 | {
|
---|
31 | material GameTools/GlowBlurV
|
---|
32 | input 0 luminance
|
---|
33 | }
|
---|
34 | }
|
---|
35 | target rt1
|
---|
36 | {
|
---|
37 | input none
|
---|
38 | pass render_quad
|
---|
39 | {
|
---|
40 | material GameTools/GlowBlurH
|
---|
41 | input 0 rt0
|
---|
42 | }
|
---|
43 | }
|
---|
44 |
|
---|
45 | target_output
|
---|
46 | {
|
---|
47 | input none
|
---|
48 | pass render_quad
|
---|
49 | {
|
---|
50 | material GameTools/ToneMap
|
---|
51 | input 0 scene
|
---|
52 | input 1 rt1
|
---|
53 | input 2 luminance
|
---|
54 | }
|
---|
55 | }
|
---|
56 | }
|
---|
57 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.