simpler falloff calc for probes

This commit is contained in:
Azaezel 2018-11-28 13:12:59 -06:00
parent 4ef1a25610
commit 9bf2378e70

View file

@ -115,10 +115,7 @@ float4 main( ConvexConnectP IN ) : SV_TARGET
if(useSphereMode)
{
float3 L = probeWSPos - surface.P;
blendVal = getDistanceAtt(L, radius);
if (length(L)>radius)
blendVal = -1;
blendVal = 1.0-length(L)/radius;
}
else
{