mirror of
https://github.com/godotengine/godot.git
synced 2025-12-08 06:09:55 +00:00
Refactor pixel snapping.
-Rename pixel_snap to snap_2d_to_vertices -Added snap_2d_to_transforms which is more useful Fixes #41814 Solves proposal https://github.com/godotengine/godot-proposals/issues/1666 Supersedes #35606, supersedes #41535, supersedes #41534
This commit is contained in:
parent
debb67918e
commit
0e6664539d
20 changed files with 124 additions and 29 deletions
|
|
@ -1394,6 +1394,12 @@ SceneTree::SceneTree() {
|
|||
const bool use_debanding = GLOBAL_DEF("rendering/quality/screen_filters/use_debanding", false);
|
||||
root->set_use_debanding(use_debanding);
|
||||
|
||||
bool snap_2d_transforms = GLOBAL_DEF("rendering/quality/2d/snap_2d_transforms_to_pixel", false);
|
||||
root->set_snap_2d_transforms_to_pixel(snap_2d_transforms);
|
||||
|
||||
bool snap_2d_vertices = GLOBAL_DEF("rendering/quality/2d/snap_2d_vertices_to_pixel", false);
|
||||
root->set_snap_2d_vertices_to_pixel(snap_2d_vertices);
|
||||
|
||||
{ //load default fallback environment
|
||||
//get possible extensions
|
||||
List<String> exts;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue