I used outlinepass in my application, and then used MSAA to anti-aliasing, so far I found that the anti-aliasing effect has taken effect, but when I pull the camera lens far away and render a certain angle, I will find some small jaggedness brought by the magnification, please help me to see what is the reason for this, and how to deal with it?
These shadows disappear after the lens is adjusted and pulled closer
...
if (renderer?.capabilities.isWebGL2) {
renderTarget = new WebGLRenderTarget(width, height, { samples: 4 })
// renderTarget = new WebGLRenderTarget(width, height)
} else {
renderTarget = new WebGLRenderTarget(width, height)
}
...
this.outlinePass = new OutlinePass(new Vector2(width, height), scene, camera)
this.outlinePass!.visibleEdgeColor.set("red")
this.outlinePass!.hiddenEdgeColor.set("#fff")
this.outlinePass!.edgeStrength = 2.5
this.outlinePass!.pulsePeriod = 2.5
this.outlinePass!.edgeGlow = 1
this.outlinePass!.edgeThickness = 2
this.addPass(this.outlinePass)
...