summaryrefslogtreecommitdiff
path: root/tools/editor/plugins
diff options
context:
space:
mode:
authorMariano Javier Suligoy <marianognu.easyrpg@gmail.com>2015-08-30 02:44:49 -0300
committerMariano Javier Suligoy <marianognu.easyrpg@gmail.com>2015-08-30 02:44:49 -0300
commita19a653e2cae50f43b8de5d4ba69170c7d2fa800 (patch)
tree88e8e7a511956a1583fa54d408e3012e70198baa /tools/editor/plugins
parentea448cb779c9268f6213a8e741cfc793704ca2fe (diff)
Compile shaders using default values.
Diffstat (limited to 'tools/editor/plugins')
-rw-r--r--tools/editor/plugins/shader_graph_editor_plugin.cpp10
1 files changed, 2 insertions, 8 deletions
diff --git a/tools/editor/plugins/shader_graph_editor_plugin.cpp b/tools/editor/plugins/shader_graph_editor_plugin.cpp
index 12a9dce6b7..5da287aa69 100644
--- a/tools/editor/plugins/shader_graph_editor_plugin.cpp
+++ b/tools/editor/plugins/shader_graph_editor_plugin.cpp
@@ -2416,15 +2416,9 @@ void ShaderGraphView::_create_node(int p_id) {
Array reals;
reals.push_back("Alpha");
reals.push_back("NormapMapDepth");
+ reals.push_back("SpecExp");
reals.push_back("LightAlpha");
reals.push_back("PointSize");
- Array vectors;
- vectors.push_back("Normal");
- vectors.push_back("NormalMap");
- vectors.push_back("Vertex");
- vectors.push_back("UV");
- vectors.push_back("Var1");
- vectors.push_back("Var2");
int idx=0;
for (List<ShaderGraph::SlotInfo>::Element *E=si.front();E;E=E->next()) {
@@ -2435,7 +2429,7 @@ void ShaderGraphView::_create_node(int p_id) {
v=Variant::COLOR;
else if (reals.find(s.name)>=0)
v=Variant::REAL;
- else if (vectors.find(s.name)>=0)
+ else
v=Variant::VECTOR3;
gn->add_child(make_label(s.name, v));
gn->set_slot(idx,true,s.type,typecol[s.type],false,0,Color());