Hey guys! I have a PG example here: https://playground.babylonjs.com/#69DRZ1#526
As you may see, I just rendered three rectangles in my rttScene and saved them as a RenderTargetTexture object. Then, I applied this texture to the shaderMaterial property of a big rectangle in my mainScene.
The problem is that the edges of the rectangles in RenderTargetTexture is so obvious that I need to get rid of. (This is only a demo here, in my real project, lines even become dashedlines…)
This phenomenon only shows up when I render my rttScene as a texture. If you commit line 29-36 and line 42-55, you will see the rectangles are well rendered in the rttScene before it becomes a texture!
(This is the scene without RTT, everything seems to be perfect!)
I guess there must be a way to make my RTT / render result more precise, just like the last image, but I do not know whether I should change the settings of my RTT or do anti-aliasing in my shaders. Hope anyone could help and fix this problem! (best to fix in this PG~)