was improperly accounting for attenaution. needs a reversal for atten = 0 to be full unblended application fo a given projection.

This commit is contained in:
Azaezel 2019-03-24 17:41:34 -05:00
parent b935b7b19f
commit de8b267780

View file

@ -71,7 +71,7 @@ float getDistBoxToPoint(float3 pt, float3 extents)
float defineBoxSpaceInfluence(Surface surface, ProbeData probe, float3 wsEyeRay)
{
float3 surfPosLS = mul(probe.worldToLocal, float4(surface.P, 1.0)).xyz;
float atten = probe.attenuation;
float atten = 1.0-probe.attenuation;
float baseVal = 0.25;
float dist = getDistBoxToPoint(surfPosLS,float3(baseVal,baseVal,baseVal));
return saturate(smoothstep(baseVal+0.0001,atten*baseVal,dist));