feat: updated engine version to 4.4-rc1
This commit is contained in:
parent
ee00efde1f
commit
21ba8e33af
5459 changed files with 1128836 additions and 198305 deletions
|
|
@ -37,6 +37,8 @@
|
|||
#include "scene/resources/shader.h"
|
||||
#include "scene/resources/texture.h"
|
||||
|
||||
class ColorChannelSelector;
|
||||
|
||||
class Texture3DEditor : public Control {
|
||||
GDCLASS(Texture3DEditor, Control);
|
||||
|
||||
|
|
@ -49,26 +51,34 @@ class Texture3DEditor : public Control {
|
|||
|
||||
Control *texture_rect = nullptr;
|
||||
|
||||
ColorChannelSelector *channel_selector = nullptr;
|
||||
|
||||
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();
|
||||
|
||||
void on_selected_channels_changed();
|
||||
|
||||
protected:
|
||||
void _notification(int p_what);
|
||||
|
||||
public:
|
||||
void edit(Ref<Texture3D> p_texture);
|
||||
|
||||
Texture3DEditor();
|
||||
~Texture3DEditor();
|
||||
};
|
||||
|
|
@ -85,7 +95,7 @@ class Texture3DEditorPlugin : public EditorPlugin {
|
|||
GDCLASS(Texture3DEditorPlugin, EditorPlugin);
|
||||
|
||||
public:
|
||||
virtual String get_name() const override { return "Texture3D"; }
|
||||
virtual String get_plugin_name() const override { return "Texture3D"; }
|
||||
|
||||
Texture3DEditorPlugin();
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue