From 1f3f73129d8756f41529b832413c1ee5aa7bc862 Mon Sep 17 00:00:00 2001 From: hizzlekizzle Date: Wed, 7 Dec 2016 07:33:28 -0600 Subject: [PATCH] change parameter for ntsc-color --- misc/ntsc-colors.slang | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/misc/ntsc-colors.slang b/misc/ntsc-colors.slang index a38d2da..c154a1c 100755 --- a/misc/ntsc-colors.slang +++ b/misc/ntsc-colors.slang @@ -9,7 +9,7 @@ layout(push_constant) uniform Push float intensity; } params; -#pragma parameter intensity "NTSC Intensity" 0.0 0.0 1.0 0.05 +#pragma parameter intensity "NTSC Intensity" 1.0 0.0 1.0 0.05 layout(std140, set = 0, binding = 0) uniform UBO { @@ -37,6 +37,6 @@ layout(set = 0, binding = 2) uniform sampler2D Source; void main() { vec3 color = texture(Source, vTexCoord).rgb; - color = mix(NTSCtoSRGB(color.rgb), color.rgb, params.intensity); + color = mix(color.rgb, NTSCtoSRGB(color.rgb), params.intensity); FragColor = vec4(color, 1.0); }