Fix wireframe depth gradient on Vulkan

This commit is contained in:
2026-08-26 13:18:14 +02:00
parent 14df537817
commit b58d863ed4
2 changed files with 5 additions and 2 deletions
Binary file not shown.
+3
View File
@@ -149,6 +149,9 @@ float4 PS_Wireframe(float4 SvPosition : SV_Position) : SV_Target0
{
// Depth-based gradient
float alpha = saturate(SvPosition.w * UNITS_TO_METERS_SCALE * 0.1f);
#if VULKAN
alpha = 1 - alpha;
#endif
return lerp(ColorNear, ColorFar, alpha);
}