mirror of
https://mirror.ghproxy.com/https://github.com/dexyfex/CodeWalker
synced 2026-05-15 02:48:31 +08:00
Finxed rendering issues due to reversed depth
This commit is contained in:
@@ -28,8 +28,8 @@ VS_OUTPUT main(VS_INPUT input)
|
||||
|
||||
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...
|
||||
output.Position = cpos;
|
||||
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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user