optimized cubemap shadow depth write
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user