Merge pull request #9 from denistribouillois/FixDepthEdgeIssue
Fix depth edge issue
This commit is contained in:
Коммит
982d19f2a3
|
@ -181,7 +181,10 @@
|
|||
frag_out output;
|
||||
output.colour = col;
|
||||
#if DEPTHWRITE_ON
|
||||
output.depth = localToDepth(rayStartPos + rayDir * (iDepth * stepSize) - float3(0.5f, 0.5f, 0.5f));
|
||||
if (iDepth != 0)
|
||||
output.depth = localToDepth(rayStartPos + rayDir * (iDepth * stepSize) - float3(0.5f, 0.5f, 0.5f));
|
||||
else
|
||||
output.depth = 0;
|
||||
#endif
|
||||
return output;
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче