Bläddra i källkod

simpler falloff calc for probes

Azaezel 6 år sedan
förälder
incheckning
9bf2378e70

+ 1 - 4
Templates/Full/game/shaders/common/lighting/advanced/reflectionProbeP.hlsl

@@ -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);
-		if (length(L)>radius)
-			blendVal = -1;
-		
+		blendVal = 1.0-length(L)/radius;		
 	}
 	}
 	else
 	else
 	{
 	{