How do Viewports work?

Godot Version

Godot v4.1.3

Question

I wanted to use the same pixelating effect this guy does in the second half of the video https://www.youtube.com/watch?v=nw3vDgwfZbQ but Viewport stuff is just assumed knowledge. It’s not in any of the docs either (at least not comprehensibly). My game runs fine with just a camera and no Viewport, so if I want to modify the currently existing window view produced by that camera, how should I link it up?

I cant watch the video right now, but there is a resolution scaling demo in the asset library that uses a viewport to acheive such an effect.

You can download it right from the editor and check out how it works and what the code / scenes are like.

https://godotengine.org/asset-library/asset/2805

1 Like

Hey it worked
I stole the code, made my main node a Control and linked up some keys. Thanks

1 Like