1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-06 12:20:30 +00:00

Add new Parallax2D node

This commit is contained in:
markdibarry
2024-01-17 12:09:52 -05:00
parent f2045ba822
commit a62870956a
22 changed files with 751 additions and 53 deletions

View File

@@ -350,6 +350,9 @@ public:
ViewportRender *vp_render = nullptr;
bool distance_field;
bool light_masked;
bool repeat_source;
Point2 repeat_size;
int repeat_times = 1;
Rect2 global_rect_cache;
@@ -468,6 +471,7 @@ public:
z_final = 0;
texture_filter = RS::CANVAS_ITEM_TEXTURE_FILTER_DEFAULT;
texture_repeat = RS::CANVAS_ITEM_TEXTURE_REPEAT_DEFAULT;
repeat_source = false;
}
virtual ~Item() {
clear();