|
684 | 684 | {
|
685 | 685 | "name": "BrightnessExtracting", "type": "deferred",
|
686 | 686 | "inputs": [ { "stage": "ShadowCombining", "name": "CombinedBuffer", "sampler_name": "ColorBuffer", "unit": 0 } ],
|
687 |
| - "outputs": [ { "name": "BrightnessBuffer0", "format": "RGB_INT8" } ], |
| 687 | + "outputs": [ { "name": "BrightnessBuffer0", "format": "R_INT8" } ], |
688 | 688 | "uniforms": [ { "name": "BrightnessThreshold", "uniform_type": "float", "value": "0.7" } ],
|
689 | 689 | "shaders": [
|
690 | 690 | { "name": "QuadVS" },
|
|
712 | 712 | {
|
713 | 713 | "name": "BrightnessDownsampling1", "type": "deferred", "scale": 0.5,
|
714 | 714 | "inputs": [ { "stage": "BrightnessExtracting", "name": "BrightnessBuffer0", "sampler_name": "ColorBuffer", "unit": 0 } ],
|
715 |
| - "outputs": [ { "name": "BrightnessBuffer1", "format": "RGB_INT8" } ], |
| 715 | + "outputs": [ { "name": "BrightnessBuffer1", "format": "R_INT8" } ], |
716 | 716 | "uniforms": [ { "name": "InvBufferResolution", "uniform_type": "vec2", "value": "0.000260417 0.00185185" } ],
|
717 | 717 | "shaders": [ { "name": "QuadVS" }, { "name": "BrightnessDownsampleFS" } ]
|
718 | 718 | },
|
719 | 719 | {
|
720 | 720 | "name": "BrightnessDownsampling2", "type": "deferred", "scale": 0.125,
|
721 | 721 | "inputs": [ { "stage": "BrightnessDownsampling1", "name": "BrightnessBuffer1", "sampler_name": "ColorBuffer", "unit": 0 } ],
|
722 |
| - "outputs": [ { "name": "BrightnessBuffer2", "format": "RGB_INT8" } ], |
| 722 | + "outputs": [ { "name": "BrightnessBuffer2", "format": "R_INT8" } ], |
723 | 723 | "uniforms": [ { "name": "InvBufferResolution", "uniform_type": "vec2", "value": "0.0000651 0.00740741" } ],
|
724 | 724 | "shaders": [ { "name": "QuadVS" }, { "name": "BrightnessDownsampleFS" } ]
|
725 | 725 | },
|
726 | 726 | {
|
727 | 727 | "name": "BrightnessDownsampling3", "type": "deferred", "scale": 0.03125,
|
728 | 728 | "inputs": [ { "stage": "BrightnessDownsampling2", "name": "BrightnessBuffer2", "sampler_name": "ColorBuffer", "unit": 0 } ],
|
729 |
| - "outputs": [ { "name": "BrightnessBuffer3", "format": "RGB_INT8" } ], |
| 729 | + "outputs": [ { "name": "BrightnessBuffer3", "format": "R_INT8" } ], |
730 | 730 | "uniforms": [ { "name": "InvBufferResolution", "uniform_type": "vec2", "value": "0.0000162 0.0296296" } ],
|
731 | 731 | "shaders": [ { "name": "QuadVS" }, { "name": "BrightnessDownsampleFS" } ]
|
732 | 732 | },
|
733 | 733 | {
|
734 | 734 | "name": "BrightnessDownsampling4", "type": "deferred", "scale": 0.0078125,
|
735 | 735 | "inputs": [ { "stage": "BrightnessDownsampling3", "name": "BrightnessBuffer3", "sampler_name": "ColorBuffer", "unit": 0 } ],
|
736 |
| - "outputs": [ { "name": "BrightnessBuffer4", "format": "RGB_INT8" } ], |
| 736 | + "outputs": [ { "name": "BrightnessBuffer4", "format": "R_INT8" } ], |
737 | 737 | "uniforms": [ { "name": "InvBufferResolution", "uniform_type": "vec2", "value": "0.00000407 0.118519" } ],
|
738 | 738 | "shaders": [ { "name": "QuadVS" }, { "name": "BrightnessDownsampleFS" } ]
|
739 | 739 | },
|
740 | 740 | {
|
741 | 741 | "name": "BrightnessDownsampling5", "type": "deferred", "scale": 0.001953125,
|
742 | 742 | "inputs": [ { "stage": "BrightnessDownsampling4", "name": "BrightnessBuffer4", "sampler_name": "ColorBuffer", "unit": 0 } ],
|
743 |
| - "outputs": [ { "name": "BrightnessBuffer5", "format": "RGB_INT8" } ], |
| 743 | + "outputs": [ { "name": "BrightnessBuffer5", "format": "R_INT8" } ], |
744 | 744 | "uniforms": [ { "name": "InvBufferResolution", "uniform_type": "vec2", "value": "0.000001017 0.474074" } ],
|
745 | 745 | "shaders": [ { "name": "QuadVS" }, { "name": "BrightnessDownsampleFS" } ]
|
746 | 746 | },
|
|
789 | 789 | " vec4 color5 = blur5(BrightnessBuffer4, uv0);",
|
790 | 790 | " vec4 color6 = blur5(BrightnessBuffer5, uv0);",
|
791 | 791 |
|
792 |
| - " vec3 color = mix(color1.rgb, color2.rgb, color2.a);", |
793 |
| - " color = mix(color.rgb, color3.rgb, color3.a);", |
794 |
| - " color = mix(color.rgb, color4.rgb, color4.a);", |
795 |
| - " color = mix(color.rgb, color5.rgb, color5.a);", |
796 |
| - " color = mix(color.rgb, color6.rgb, color6.a);", |
| 792 | + " vec3 color = mix(color1.rgb, color2.rgb, color2.r);", |
| 793 | + " color = mix(color.rgb, color3.rgb, color3.r);", |
| 794 | + " color = mix(color.rgb, color4.rgb, color4.r);", |
| 795 | + " color = mix(color.rgb, color5.rgb, color5.r);", |
| 796 | + " color = mix(color.rgb, color6.rgb, color6.r);", |
797 | 797 | " fragData = vec4(color, 1.0);",
|
798 | 798 | " VERSE_FS_FINAL(fragData);",
|
799 | 799 | "}"
|
|
0 commit comments