This is the scenario:

I have two different probes in scene which are positioned where the bigger reflective spheres are. Their probeShape parameter correspond to the inner wireframe boxes, while the area parameter correspond to the outer wireframe boxes (and area is 1.5 times bigger than probeShape). The gray plane uses a material with metallic workflow and metalness and roughness equals to 0.5.
What I'd like to obtain is:
- No interpolation between probes inside the inner region
- Smooth interpolation between probes in the region included between inner and outer
Looking at the shader code, I've seen that the area parameter isn't taken in account to decide whether a pixel must be lit by a probe:
Code: Select all
float probeFade = getProbeFade( posInProbSpace, probe );
if( probeFade > 0 )
On the contrary, the area parameter is taken in account when ndf is calculated:
Code: Select all
float ndf = getProbeNDF( posInProbSpace.xyz, probeToAreaCenterOffsetLS.xyz,
probeInnerRange.xyz, probeOuterRange.xyz );