1
0
mirror of https://github.com/godotengine/godot.git synced 2025-12-04 17:04:49 +00:00

Improve layered texture preview

This commit is contained in:
BlueCube3310
2024-05-30 13:53:26 +02:00
parent 96be44c0ec
commit e0f30d30e2
7 changed files with 274 additions and 123 deletions

View File

@@ -52,23 +52,27 @@ class Texture3DEditor : public Control {
bool setting = false;
void _make_shaders();
void _update_material();
void _layer_changed(double) {
if (!setting) {
_update_material();
_update_material(false);
}
}
void _texture_changed();
void _texture_rect_update_area();
void _texture_rect_draw();
void _update_material(bool p_texture_changed);
void _update_gui();
protected:
void _notification(int p_what);
public:
void edit(Ref<Texture3D> p_texture);
Texture3DEditor();
~Texture3DEditor();
};