Black spot inside of box at intersection even while having "Render in Main Pass" and "Render in Depth Pass" cleared

I am trying to draw a mask using a mesh, but I cannot seem to get rid of what appears to be ambient occlusion or some kind of spot (black sometimes) that appears at the intersection of the box that I am using as a mask. The spot turns to black when the light direction is toward the mask.

Here is what it looks like:

It doesn’t appear to be shadow, because I turned off all shadow drawing. I tried turning off ambient occlusion using r.AmbientOcclusionLevels=0, and that didn’t work either. Anyone know what this is or how to turn it off?

The only thing I did was turn off “Render in Main Pass” and “Render in Depth Pass” on one of the boxes.

However, it does this even if you leave those settings enabled, if you look inside of the box like so:

I found out what the issue is. It is distance field lighting.

Screenshot 2024-10-02 165959

Unfortunately, I need those checked for the DistanceToNearestSurface node to work.
Screenshot 2024-10-02 170351

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.