Anon09/18/25, 11:57No.3003476
PSA: I finally found out how to fix weird DoF focus outlines. I always thought this was inevitable anti-aliasing, but that was wrong. Not sure if this is common knowledge but I've never seen it mentioned anywhere...Anyway, the problem is that all DoF shaders assume that the model edge gets drawn. But e.g. Ray-MMD doesn't normally draw edges. So where the edge would be you get the background in focus instead of the edge...To fix it, edit the offscreen shader, e.g. HgDOF_Depth.fxsub, and change all edge color alpha references to 0, like so:
> alpha = EdgeColor.a * !opadd;
to
> alpha = 0.0;And that fixes it!