Skip to content

Commit

Permalink
Fix some warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
Mortalitas committed Jun 27, 2024
1 parent 6bd95fb commit b481569
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions Shaders/BilateralComic.fx
Original file line number Diff line number Diff line change
Expand Up @@ -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));
Expand Down
2 changes: 1 addition & 1 deletion Shaders/CMAA_2.fx
Original file line number Diff line number Diff line change
Expand Up @@ -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);

}

Expand Down
4 changes: 2 additions & 2 deletions Shaders/pPalettePosterize.fx
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit b481569

Please sign in to comment.