How to handle double rendering correctly

What I want to know

How to upscale the drawing of an ObjectRender node, add lighting effects, draw it in the viewport, and display it in a window.

current situation

It seems that the image is not being upscaled properly because the resolution is different, or the screen is enlarged.

About Nodes

ObjectRender: Draws sprites
LightRender: Upscales ObjectRender, adds lighting effects, and draws to the screen

What you want to do

When creating a 2D game, I want to draw at low resolution, upscale it, add lighting effects, and then draw the final image.

What I researched

Ask questions using ChatGPT

Environment

Version: 4.4
OS: Windows10
Script: C#

1 Like

You can try reimporting that Sprite2D texture and increasing the scale value in the Import tab.

The problem was that the TextureRect node > Transform > size was set to the low resolution size for sprite drawing. It should have been set to the high resolution for lighting.

My question is, if I want to use more than two rendering resolutions, is it appropriate to use subviewports?

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