godot-demo-projects/viewport/3d_scaling
Aaron Franke aea4010bc8
Convert most demos to GLES 2
Also fix Viewport error in 3D scaling demo, add an icon to Multiplayer Bomber, and rename BPM sync files.
2020-03-04 20:59:12 -05:00
..
README.md
default_env.tres
hud.gd Convert most demos to GLES 2 2020-03-04 20:59:12 -05:00
hud.tscn Convert most demos to GLES 2 2020-03-04 20:59:12 -05:00
icon.png
icon.png.import
noto_sans_ui_regular.ttf
project.godot Convert most demos to GLES 2 2020-03-04 20:59:12 -05:00
spatial.tscn

README.md

3D 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.