diff --git a/Shaders/BilateralComic.fx b/Shaders/BilateralComic.fx index 962381c..020e8ff 100644 --- a/Shaders/BilateralComic.fx +++ b/Shaders/BilateralComic.fx @@ -258,6 +258,7 @@ void BilateralFilterPS(float4 pos : SV_Position, float2 texcoord : TEXCOORD, out void OutputPS(float4 pos : SV_Position, float2 texcoord : TEXCOORD, out float4 color : SV_Target0) { + color = float4(0.0, 0.0, 0.0, 0.0); float sobel = tex2D(sSobel, texcoord).x; if(1 - sobel > (1 - EdgeThreshold)) sobel = 0; sobel *= exp(-(2 - EdgeStrength)); diff --git a/Shaders/CMAA_2.fx b/Shaders/CMAA_2.fx index a5ff122..7eaea1e 100644 --- a/Shaders/CMAA_2.fx +++ b/Shaders/CMAA_2.fx @@ -728,7 +728,7 @@ float4 DetectComplexShapes(uint2 coord, float4 edges, float4 edgesLeft, float4 e return packZ(horizontal, invertedZ, shapeQualityScore, lineLengthLeft, lineLengthRight);//((uint(horizontal) << 19) | (uint(invertedZ) << 18) | (uint(shapeQualityScore) << 16) | (uint(lineLengthLeft) << 8) | (uint(lineLengthRight))); } } - return 0; + return float4(0.0, 0.0, 0.0, 0.0); } diff --git a/Shaders/pPalettePosterize.fx b/Shaders/pPalettePosterize.fx index d854074..297f3a3 100644 --- a/Shaders/pPalettePosterize.fx +++ b/Shaders/pPalettePosterize.fx @@ -27,10 +27,10 @@ uniform float3 BaseColor < ui_tooltip = "Color from which other colors are calculated"; ui_category = "Settings"; > = float3(0.52, 0.05, 0.05); -uniform int NumColors < +uniform float NumColors < ui_type = "slider"; ui_label = "Number of colors"; - ui_min = 2; ui_max = 16; + ui_min = 2.0; ui_max = 16.0; ui_step = 1.0; ui_tooltip = "Number of colors to posterize to"; ui_category = "Settings"; > = 4;