run shader before upscaling window

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

My scene is 400*225 px and then upscaled to 1280x720 with the Test Width/Height setting in project settings, to make it look pixelated.

I have a shader on an object which makes it sway back and forth. I want the distortion to have the same resolution as the rest of my assets, however it seems the effect is applied after the upscaling, making it appear to have a higher resolution than the rest of the game. Can I either A. make sure the shader is run before the upscaling, or B. force the shader to be of a “lower” resolution then it is. Or C. something else completely.

I have the “Stretch” setting set to 2D, or the shader wont work. “Hidpi” is off.

using “shrink” might work better?
you can use the “shrink” viewport setting to pixelate or upscale the whole game (in settings window) or individual viewports in the viewport container properties
Multiple resolutions — Godot Engine (stable) documentation in English

rakkarage | 2020-06-29 14:46