Skip to content

Commit

Permalink
Rewrite many shaders
Browse files Browse the repository at this point in the history
  • Loading branch information
papadanku committed Oct 29, 2021
1 parent 1562028 commit 6f4fe1f
Show file tree
Hide file tree
Showing 13 changed files with 526 additions and 592 deletions.
3 changes: 2 additions & 1 deletion shaders/cBloom.fx
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ float4 DownsamplePS(sampler2D Source, float4 TexCoord[4])
Output += (B0 + C0 + B1 + C1) * Weights.y;
Output += (A1 + B1 + A2 + B2) * Weights.y;
Output += (B1 + C1 + B2 + C2) * Weights.y;
return Output;
return float4(Output.rgb, 1.0);
}

float4 UpsamplePS(sampler2D Source, float4 TexCoord[3])
Expand Down Expand Up @@ -188,6 +188,7 @@ void PrefilterPS(float4 Position : SV_POSITION, float2 TexCoord : TEXCOORD0, out
Color = Color * max(ResponseCurve, Brightness - _Threshold) / max(Brightness, 1e-10);
Brightness = max(max(Color.r, Color.g), Color.b);
OutputColor0 = saturate(lerp(Brightness, Color.rgb, _Saturation));
OutputColor0.a = 1.0;
}

// sRGB => XYZ => D65_2_D60 => AP1 => RRT_SAT
Expand Down
9 changes: 1 addition & 8 deletions shaders/cFrameDifference.fx
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,7 @@ uniform float _Blend <

uniform float _Weight <
ui_type = "slider";
ui_label = "Thresholding";
ui_min = 0.0;
ui_max = 2.0;
> = 1.0;

uniform float _Scale <
ui_type = "slider";
ui_label = "Scaling";
ui_label = "Weight";
ui_min = 0.0;
ui_max = 2.0;
> = 1.0;
Expand Down
Loading

0 comments on commit 6f4fe1f

Please sign in to comment.