You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-06 12:20:30 +00:00
Drag & drop 3d/2d array/cubemap texture to visual shader
This commit is contained in:
@@ -241,7 +241,10 @@ class VisualShaderEditor : public VBoxContainer {
|
||||
};
|
||||
|
||||
Vector<AddOption> add_options;
|
||||
int texture_node_option_idx;
|
||||
int cubemap_node_option_idx;
|
||||
int texture2d_node_option_idx;
|
||||
int texture2d_array_node_option_idx;
|
||||
int texture3d_node_option_idx;
|
||||
int custom_node_option_idx;
|
||||
List<String> keyword_list;
|
||||
|
||||
@@ -250,7 +253,10 @@ class VisualShaderEditor : public VBoxContainer {
|
||||
void _draw_color_over_button(Object *obj, Color p_color);
|
||||
|
||||
void _add_custom_node(const String &p_path);
|
||||
void _add_texture_node(const String &p_path);
|
||||
void _add_cubemap_node(const String &p_path);
|
||||
void _add_texture2d_node(const String &p_path);
|
||||
void _add_texture2d_array_node(const String &p_path);
|
||||
void _add_texture3d_node(const String &p_path);
|
||||
VisualShaderNode *_add_node(int p_idx, int p_op_idx = -1);
|
||||
void _update_options_menu();
|
||||
void _set_mode(int p_which);
|
||||
|
||||
Reference in New Issue
Block a user