remove vestigial console-border parameter and half-pixel offset from gb-pass0

This commit is contained in:
hunterk 2017-09-06 11:20:09 -05:00
parent bd385aa889
commit f041f64f4d

View File

@ -9,7 +9,6 @@ layout(push_constant) uniform Push
float baseline_alpha;
float grey_balance;
float response_time;
float console_border_enable;
float video_scale;
} registers;
@ -33,9 +32,6 @@ layout(std140, set = 0, binding = 0) uniform UBO
// Higher values result in longer color transition periods - [0, 1]
#pragma parameter response_time "LCD Response Time" 0.333 0.0 0.777 0.111
// Change scaling to enable use in console-border shaders
#pragma parameter console_border_enable "Console-Border Enable" 0.0 0.0 1.0 1.0
// Set video scale when used in console-border shaders
#pragma parameter video_scale "Video Scale" 3.0 3.0 5.0 1.0
@ -88,7 +84,6 @@ layout(location = 3) out vec2 one_texel;
void main()
{
float video_scale_factor = floor(registers.OutputSize.y * registers.SourceSize.w);
if (registers.console_border_enable > 0.5) video_scale_factor = registers.video_scale;
vec2 scaled_video_out = (registers.SourceSize.xy * vec2(video_scale_factor));
// Remaps position to integer scaled output
gl_Position = global.MVP * Position / vec4( vec2(registers.OutputSize.xy / scaled_video_out), 1.0, 1.0 );