mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-07-12 23:24:41 +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)
|
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
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue