godot-demo-projects/viewport/3d_scaling
voylin e6c19ff4a9
Fix scaling not working after resizing the window (#699)
2022-03-29 19:28:58 -05:00
..
screenshots
README.md
cubes.tscn Update Viewport demos to Godot 4 2022-03-26 19:29:53 -05:00
default_env.tres
hud.gd Fix scaling not working after resizing the window (#699) 2022-03-29 19:28:58 -05:00
hud.tscn
icon.png
icon.png.import
noto_sans_ui_regular.ttf
noto_sans_ui_regular.ttf.import
project.godot Fix scaling not working after resizing the window (#699) 2022-03-29 19:28:58 -05:00

README.md

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

Language: GDScript

Renderer: GLES 2

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

Screenshots

Screenshot

Screenshot