Finxed rendering issues due to reversed depth

This commit is contained in:
dexy
2019-12-01 20:47:16 +11:00
Unverified
parent 442d623302
commit 755477590d
7 changed files with 6 additions and 6 deletions
+1 -1
View File
@@ -36,7 +36,7 @@ VS_OUTPUT main(uint id : SV_VertexID)
float3 opos = pos - CameraPos.xyz;
float4 cpos = mul(float4(opos, 1), ViewProj);
cpos.z -= 0.01; //bias paths depth slightly to bring it in front of normal geometry...
cpos.z *= 1.01; //bias paths depth slightly to bring it in front of normal geometry...
output.Position = cpos;
output.Colour.rgb = col.rgb * LightColour.a; //apply intensity
output.Colour.a = col.a;