mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-02-14 04:03:46 +00:00
simpler falloff calc for probes
This commit is contained in:
parent
d3eb2f7784
commit
cf2eaee29b
1 changed files with 1 additions and 4 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue