From 9bf2378e70f5def1776c4445fc3e69c68859f5b3 Mon Sep 17 00:00:00 2001 From: Azaezel Date: Wed, 28 Nov 2018 13:12:59 -0600 Subject: [PATCH] simpler falloff calc for probes --- .../shaders/common/lighting/advanced/reflectionProbeP.hlsl | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/Templates/Full/game/shaders/common/lighting/advanced/reflectionProbeP.hlsl b/Templates/Full/game/shaders/common/lighting/advanced/reflectionProbeP.hlsl index 71a51ae5e..6ea1ba010 100644 --- a/Templates/Full/game/shaders/common/lighting/advanced/reflectionProbeP.hlsl +++ b/Templates/Full/game/shaders/common/lighting/advanced/reflectionProbeP.hlsl @@ -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 {