When i render a Viewport render target into a Sprite, all objects get pixelated (lose quality)

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By RotcivOcnarb

I currently have a setup where i draw 2 little gradient balls, one is in the root of the game, and the other one is within a Viewport node.

I use a sprite node to render the Viewport texture, but this is the final result:

The red ball is the one inside the Viewport, and the Blue one is outside

is there any configuration i forgot to make when using Viewports?

Thanks in advance!

EDIT: I have already changed the viewport Size, but that doesn’t affect the overall result

You may bee seeing this bug.

Geekforged | 2020-06-13 23:56

:bust_in_silhouette: Reply From: path9263

Maybe that Msaa setting under ‘Rendering’ on the right side of your screen-shot?

MSAA in Godot doesn’t affect 2D rendering. Also, the rendered image is clearly pixelated here, so I guess the viewport was upscaled somehow (if you want to keep it crisp, its scale shouldn’t be changed).

Calinou | 2019-05-20 13:05