Skip to content

Commit 4ff8a27

Browse files
committed
cDLAA: More debug modes
1 parent 490c538 commit 4ff8a27

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

shaders/cDLAA.fx

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
uniform int _RenderMode <
1111
ui_label = "Render Mode";
1212
ui_type = "combo";
13-
ui_items = "Render Image\0Render Mask\0";
13+
ui_items = "Image\0Short Edge Mask\0Long Edge Mask\0";
1414
> = 0;
1515

1616
uniform int _ContrastThreshold <
@@ -194,9 +194,14 @@ float4 PS_DLAA(CShade_VS2PS_Quad Input) : SV_TARGET0
194194
float4 R = (4.0 * (R0 + R1 + R2 + R3) + Center + Top01 + Bottom01 + Left01 + Right01) / 25.0;
195195
Color = lerp(Color, Center, saturate(R.a * 3.0 - 1.5));
196196

197-
if (_RenderMode == 1)
197+
switch (_RenderMode)
198198
{
199-
return tex2Dlod(SampleTempTex0, float4(Input.Tex0, 0.0, 0.0)).a;
199+
case 1:
200+
Color = float4(EdgeMaskH, EdgeMaskV, 0.0, 0.0);
201+
break;
202+
case 2:
203+
Color = float4(LongEdgeMaskH, LongEdgeMaskV, 0.0, 0.0);
204+
break;
200205
}
201206

202207
return CBlend_OutputChannels(float4(Color.rgb, _CShadeAlphaFactor));

0 commit comments

Comments
 (0)