Rev | Line | |
---|
[777] | 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
|
---|
[1683] | 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
|
---|
[777] | 13 |
|
---|
| 14 | target scene
|
---|
| 15 | {
|
---|
[1683] | 16 | input previous
|
---|
[777] | 17 | }
|
---|
| 18 | target luminance
|
---|
| 19 | {
|
---|
| 20 | input none
|
---|
| 21 |
|
---|
| 22 | pass render_quad
|
---|
| 23 | {
|
---|
| 24 | material GameTools/Luminance
|
---|
| 25 | input 0 scene
|
---|
| 26 | }
|
---|
| 27 | }
|
---|
| 28 | target rt0
|
---|
| 29 | {
|
---|
| 30 | input none
|
---|
| 31 |
|
---|
| 32 | pass render_quad
|
---|
| 33 | {
|
---|
| 34 | material GameTools/GlowBlurV
|
---|
| 35 | input 0 luminance
|
---|
| 36 | }
|
---|
| 37 | }
|
---|
| 38 | target rt1
|
---|
| 39 | {
|
---|
| 40 | input none
|
---|
| 41 | pass render_quad
|
---|
| 42 | {
|
---|
| 43 | material GameTools/GlowBlurH
|
---|
| 44 | input 0 rt0
|
---|
| 45 | }
|
---|
| 46 | }
|
---|
| 47 |
|
---|
[1683] | 48 | target rt2
|
---|
| 49 | {
|
---|
| 50 | input none
|
---|
| 51 | pass render_quad
|
---|
| 52 | {
|
---|
| 53 | material GameTools/GlowBlurV
|
---|
| 54 | input 0 rt1
|
---|
| 55 | }
|
---|
| 56 | }
|
---|
| 57 |
|
---|
| 58 | target rt3
|
---|
| 59 | {
|
---|
| 60 | input none
|
---|
| 61 | pass render_quad
|
---|
| 62 | {
|
---|
| 63 | material GameTools/GlowBlurH
|
---|
| 64 | input 0 rt2
|
---|
| 65 | }
|
---|
| 66 | }
|
---|
| 67 |
|
---|
| 68 | target rt4
|
---|
| 69 | {
|
---|
| 70 | input none
|
---|
| 71 | pass render_quad
|
---|
| 72 | {
|
---|
| 73 | material GameTools/GlowBlurV
|
---|
| 74 | input 0 rt3
|
---|
| 75 | }
|
---|
| 76 | }
|
---|
| 77 |
|
---|
| 78 | target rt5
|
---|
| 79 | {
|
---|
| 80 | input none
|
---|
| 81 | only_initial on
|
---|
| 82 | pass clear
|
---|
| 83 | {
|
---|
| 84 |
|
---|
| 85 | }
|
---|
| 86 | }
|
---|
| 87 |
|
---|
| 88 | target rt5
|
---|
| 89 | {
|
---|
| 90 | input none
|
---|
| 91 |
|
---|
| 92 | pass render_quad
|
---|
| 93 | {
|
---|
| 94 | clear
|
---|
| 95 | {
|
---|
| 96 | buffers depth
|
---|
| 97 | }
|
---|
| 98 |
|
---|
| 99 | material GameTools/GlowBlurHTB
|
---|
| 100 | input 0 rt4
|
---|
| 101 | }
|
---|
| 102 | }
|
---|
| 103 |
|
---|
[777] | 104 | target_output
|
---|
| 105 | {
|
---|
| 106 | input none
|
---|
| 107 | pass render_quad
|
---|
| 108 | {
|
---|
| 109 | material GameTools/ToneMap
|
---|
| 110 | input 0 scene
|
---|
| 111 | input 1 rt1
|
---|
[1683] | 112 | input 2 luminance
|
---|
| 113 | input 3 rt5
|
---|
[777] | 114 | }
|
---|
| 115 | }
|
---|
| 116 | }
|
---|
| 117 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.