Files
godot-demo-projects/viewport/3d_scaling
Hugo Locurcio fe6103256a Allow hiDPI in all demos that support multiple resolutions
This is required to benefit from crisp display on hiDPI monitors.
This also fixes issues related to fullscreen and input handling
when using an hiDPI display on Windows.
2020-10-01 00:56:12 +02:00
..
2020-06-27 21:07:49 -04:00
2020-06-08 22:43:19 -04:00
2020-06-27 21:07:49 -04:00
2020-08-16 17:48:38 -05:00
2020-02-19 21:13:20 +01:00

3D Viewport Scaling

This demo shows how to scale the 3D viewport rendering without affecting 2D elements such as the HUD. It also demonstrates how to toggle filtering on a viewport by using TextureRect to display the ViewportTexture delivered by the Viewport node. This technique can be useful in 2D games as well. For instance, it can be used to have a "pixel art" viewport for the main game area and a non-pixel-art viewport for HUD elements.

ViewportContainer can also be used to display a viewport in a GUI, but it doesn't offer the ability to enable filtering.

Language: GDScript

Renderer: GLES 2

Check out this demo on the asset library: https://godotengine.org/asset-library/asset/586

Screenshots

Screenshot

Screenshot