Make DebugDraw render lines with unlit PS

This commit is contained in:
Wiktor Kocielski
2023-05-05 16:29:12 +03:00
parent 73ff053470
commit 42a9eaf72e
2 changed files with 17 additions and 2 deletions

View File

@@ -54,9 +54,22 @@ float4 PS(VS2PS input) : SV_Target
return PerformFakeLighting(input.Position, input.Color);
}
META_PS(true, FEATURE_LEVEL_ES2)
float4 PSUnlit(VS2PS input) : SV_Target
{
return input.Color;
}
META_PS(true, FEATURE_LEVEL_ES2)
float4 PS_DepthTest(VS2PS input) : SV_Target
{
PerformDepthTest(input.Position);
return PerformFakeLighting(input.Position, input.Color);
}
META_PS(true, FEATURE_LEVEL_ES2)
float4 PS_DepthTestUnlit(VS2PS input) : SV_Target
{
PerformDepthTest(input.Position);
return input.Color;
}