summaryrefslogtreecommitdiff
path: root/scene/resources
diff options
context:
space:
mode:
authorJuan Linietsky <reduzio@gmail.com>2015-05-04 10:17:24 -0300
committerJuan Linietsky <reduzio@gmail.com>2015-05-04 10:17:24 -0300
commita76709d24038442880f3174e15e84d5317e61d9f (patch)
tree77c5f64461daaf44aa7099016c3b4e31e614eaf3 /scene/resources
parent9b01f5954afbfa61169a7afd2c3d329e7a2882de (diff)
-vec3 uniforms should now work, fixes #1773
Diffstat (limited to 'scene/resources')
-rw-r--r--scene/resources/shader_graph.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/scene/resources/shader_graph.cpp b/scene/resources/shader_graph.cpp
index 131b0e193f..58a402f006 100644
--- a/scene/resources/shader_graph.cpp
+++ b/scene/resources/shader_graph.cpp
@@ -2378,7 +2378,7 @@ void ShaderGraph::_add_node_code(ShaderType p_type,Node *p_node,const Vector<Str
String name = p_node->param1;
Vector3 dv=p_node->param2;
- code +="uniform float "+name+"=vec3("+rtos(dv.x)+","+rtos(dv.y)+","+rtos(dv.z)+");\n";
+ code +="uniform vec3 "+name+"=vec3("+rtos(dv.x)+","+rtos(dv.y)+","+rtos(dv.z)+");\n";
code += OUTNAME(p_node->id,0)+"="+name+";\n";
}break;
case NODE_RGB_INPUT: {