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
|
|
@ -45,6 +45,7 @@ class MeshInstance3D;
|
|||
class SubViewport;
|
||||
class SubViewportContainer;
|
||||
class Button;
|
||||
class Label;
|
||||
|
||||
class MaterialEditor : public Control {
|
||||
GDCLASS(MaterialEditor, Control);
|
||||
|
|
@ -61,6 +62,7 @@ class MaterialEditor : public Control {
|
|||
Node3D *rotation = nullptr;
|
||||
MeshInstance3D *sphere_instance = nullptr;
|
||||
MeshInstance3D *box_instance = nullptr;
|
||||
MeshInstance3D *quad_instance = nullptr;
|
||||
DirectionalLight3D *light1 = nullptr;
|
||||
DirectionalLight3D *light2 = nullptr;
|
||||
Camera3D *camera = nullptr;
|
||||
|
|
@ -68,6 +70,11 @@ class MaterialEditor : public Control {
|
|||
|
||||
Ref<SphereMesh> sphere_mesh;
|
||||
Ref<BoxMesh> box_mesh;
|
||||
Ref<QuadMesh> quad_mesh;
|
||||
|
||||
VBoxContainer *layout_error = nullptr;
|
||||
Label *error_label = nullptr;
|
||||
bool is_unsupported_shader_mode = false;
|
||||
|
||||
HBoxContainer *layout_3d = nullptr;
|
||||
|
||||
|
|
@ -75,6 +82,7 @@ class MaterialEditor : public Control {
|
|||
|
||||
Button *sphere_switch = nullptr;
|
||||
Button *box_switch = nullptr;
|
||||
Button *quad_switch = nullptr;
|
||||
Button *light_1_switch = nullptr;
|
||||
Button *light_2_switch = nullptr;
|
||||
|
||||
|
|
@ -83,6 +91,7 @@ class MaterialEditor : public Control {
|
|||
Ref<Texture2D> light_2_icon;
|
||||
Ref<Texture2D> sphere_icon;
|
||||
Ref<Texture2D> box_icon;
|
||||
Ref<Texture2D> quad_icon;
|
||||
Ref<Texture2D> checkerboard;
|
||||
} theme_cache;
|
||||
|
||||
|
|
@ -90,11 +99,14 @@ class MaterialEditor : public Control {
|
|||
void _on_light_2_switch_pressed();
|
||||
void _on_sphere_switch_pressed();
|
||||
void _on_box_switch_pressed();
|
||||
void _on_quad_switch_pressed();
|
||||
|
||||
protected:
|
||||
virtual void _update_theme_item_cache() override;
|
||||
void _notification(int p_what);
|
||||
void gui_input(const Ref<InputEvent> &p_event) override;
|
||||
void _set_rotation(real_t p_x_degrees, real_t p_y_degrees);
|
||||
void _store_rotation_metadata();
|
||||
void _update_rotation();
|
||||
|
||||
public:
|
||||
|
|
@ -119,7 +131,7 @@ class MaterialEditorPlugin : public EditorPlugin {
|
|||
GDCLASS(MaterialEditorPlugin, EditorPlugin);
|
||||
|
||||
public:
|
||||
virtual String get_name() const override { return "Material"; }
|
||||
virtual String get_plugin_name() const override { return "Material"; }
|
||||
|
||||
MaterialEditorPlugin();
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue