[XCX] XYZ capped not just X

Fix - Scale R G B, not just R even if source is monochrome
This commit is contained in:
getdls 2017-11-28 23:19:41 +01:00
parent 9ffc9b6cdb
commit f53f4fdaeb
6 changed files with 8 additions and 8 deletions

View File

@ -4,7 +4,7 @@
// shader 4d4b09634a7eab30
// Last step vertical blend - static /2 factor as a compromise. fx gets lost in blend on higher scaling
// To-do candidate for multi pass / bokeh replacement
const float resScale = 2.0;
const float resScale = 1.0;
uniform ivec4 uf_remappedPS[7];
layout(binding = 0) uniform sampler2D textureUnitPS0;// Tex0 addr 0xf4fde000 res 640x360x1 dim 1 tm: 4 format 0820 compSel: 0 1 2 3 mipView: 0x0 (num 0x1) sliceView: 0x0 (num 0x1) Sampler0 ClampX/Y/Z: 2 2 2 border: 0
layout(binding = 1) uniform sampler2D textureUnitPS1;// Tex1 addr 0xf51aa000 res 640x360x1 dim 1 tm: 4 format 0820 compSel: 0 1 2 3 mipView: 0x0 (num 0x1) sliceView: 0x0 (num 0x1) Sampler1 ClampX/Y/Z: 2 2 2 border: 0

View File

@ -4,7 +4,7 @@
// shader 5eb82314ffb8484e // bg scale, - static /2 factor as a compromise. fx gets lost in blend on higher scaling
// Bgscale - _disabled probably overkill.
// To-do candidate for multi pass / bokeh replacement
const float resScale = 2.0;
const float resScale = 1.0;
//const float resScale = 2.0;
uniform ivec4 uf_remappedPS[7];
layout(binding = 0) uniform sampler2D textureUnitPS0;// Tex0 addr 0xf4e12000 res 640x360x1 dim 1 tm: 4 format 0820 compSel: 0 1 2 3 mipView: 0x0 (num 0x1) sliceView: 0x0 (num 0x1) Sampler0 ClampX/Y/Z: 2 2 2 border: 0

View File

@ -582,5 +582,5 @@ R0i.y = floatBitsToInt((intBitsToFloat(PV0i.y) * intBitsToFloat(uf_remappedPS[30
R0i.z = floatBitsToInt((intBitsToFloat(PV0i.x) * intBitsToFloat(uf_remappedPS[30].x) + intBitsToFloat(uf_remappedPS[30].y)));
}
// export
passPixelColor0 = vec4(intBitsToFloat(R0i.x)*shadowExposure, intBitsToFloat(R0i.y), intBitsToFloat(R0i.z), intBitsToFloat(R0i.w));
passPixelColor0 = vec4(intBitsToFloat(R0i.x)*shadowExposure, intBitsToFloat(R0i.y)*shadowExposure, intBitsToFloat(R0i.z)*shadowExposure, intBitsToFloat(R0i.w));
}

View File

@ -476,5 +476,5 @@ R0i.x = floatBitsToInt((intBitsToFloat(R1i.w) * intBitsToFloat(uf_remappedPS[22]
R0i.w = 0;
}
// export
passPixelColor0 = vec4(intBitsToFloat(R0i.x)*shadowExposure, intBitsToFloat(R0i.x), intBitsToFloat(R0i.x), intBitsToFloat(R0i.w));
passPixelColor0 = vec4(intBitsToFloat(R0i.x)*shadowExposure, intBitsToFloat(R0i.x)*shadowExposure, intBitsToFloat(R0i.x)*shadowExposure, intBitsToFloat(R0i.w));
}

View File

@ -4,8 +4,8 @@
// To-do, .5 is daylight and 1.0 night is wiiu "correct" for nvidia
// changes here in turn "breaks" bloom as they over or under expose depending on day/night
const float preExposure = 0.72; // old brigntess tweak. Truncates at around .45+
const float gammaPostExposure = 0.9; // compensate pre exposure, but loss of contrast when positive.
const float preExposure = 0.85; // old brigntess tweak. Truncates at around .45+
const float gammaPostExposure = 0.85; // compensate pre exposure, but loss of contrast when positive.
uniform ivec4 uf_remappedPS[1];
layout(binding = 0) uniform sampler2D textureUnitPS0;// Tex0 addr 0xf470a000 res 1280x720x1 dim 1 tm: 4 format 0816 compSel: 0 1 2 5 mipView: 0x0 (num 0x1) sliceView: 0x0 (num 0x1) Sampler0 ClampX/Y/Z: 2 2 2 border: 0

View File

@ -4,8 +4,8 @@
// cross fade brightness
// To-do, .5 is daylight and 1.0 night is wiiu "correct" for nvidia
// changes here in turn "breaks" bloom as they over or under expose depending on day/night
const float preExposure = 0.72; // old brigntess tweak. Truncates at around .45+
const float gammaPostExposure = 0.9; // compensate pre exposure, but loss of contrast when positive.
const float preExposure = 0.85; // old brigntess tweak. Truncates at around .45+
const float gammaPostExposure = 0.85; // compensate pre exposure, but loss of contrast when positive.
uniform ivec4 uf_remappedPS[1];
layout(binding = 0) uniform sampler2D textureUnitPS0;// Tex0 addr 0xf470a000 res 1280x720x1 dim 1 tm: 4 format 0816 compSel: 0 1 2 5 mipView: 0x0 (num 0x1) sliceView: 0x0 (num 0x1) Sampler0 ClampX/Y/Z: 2 2 2 border: 0