mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-01-20 04:34:48 +00:00
simpler falloff calc for probes
This commit is contained in:
parent
4ef1a25610
commit
9bf2378e70
|
|
@ -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
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in a new issue