simpler falloff calc for probes

This commit is contained in:
Azaezel 2018-11-28 13:12:59 -06:00
parent d3eb2f7784
commit cf2eaee29b

View file

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