optimized cubemap shadow depth write

This commit is contained in:
turanszkij
2017-04-30 00:45:33 +02:00
parent 0ccc6537af
commit 409b4a4cc0
+1 -1
View File
@@ -8,7 +8,7 @@ struct VertextoPixel
uint RTIndex : SV_RenderTargetArrayIndex;
};
float main(VertextoPixel PSIn) : SV_DEPTH
float main(VertextoPixel PSIn) : SV_DEPTHLESSEQUAL
{
ALPHATEST(xBaseColorMap.Sample(sampler_linear_wrap,PSIn.tex).a);
return distance(PSIn.pos3D.xyz, g_xColor.xyz) * g_xColor.w; // g_xColor.w = 1.0 / range