summaryrefslogtreecommitdiff
path: root/scene
diff options
context:
space:
mode:
authorJuan Linietsky <juan@okamstudio.com>2015-01-20 22:31:32 -0300
committerJuan Linietsky <juan@okamstudio.com>2015-01-20 22:31:32 -0300
commitda0d4e4dea021c1fc10549cd5374d1baca2e4006 (patch)
tree5e7524a9d9f37c4207275474a4d0446465285d75 /scene
parent11c1756257368f3cd41702016c3303c0d22e3b59 (diff)
Fixes to texscreen, fixes to white testcube
Diffstat (limited to 'scene')
-rw-r--r--scene/resources/shader_graph.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/scene/resources/shader_graph.cpp b/scene/resources/shader_graph.cpp
index 73812a7ae5..2630bc5bad 100644
--- a/scene/resources/shader_graph.cpp
+++ b/scene/resources/shader_graph.cpp
@@ -1790,7 +1790,7 @@ void ShaderGraph::_update_shader() {
all_ok=false;
}
-/* print_line("VERTEX: \n"+code[0]);
+ /*print_line("VERTEX: \n"+code[0]);
print_line("FRAGMENT: \n"+code[1]);
print_line("LIGHT: \n"+code[2]);*/
@@ -1973,7 +1973,7 @@ void ShaderGraph::_add_node_code(ShaderType p_type,Node *p_node,const Vector<Str
code+=OUTNAME(p_node->id,0)+"=TIME;\n";
}break;
case NODE_SCREEN_TEX: {
- code+=OUTNAME(p_node->id,0)+"=texscreen("+p_inputs[0]+");\n";
+ code+=OUTNAME(p_node->id,0)+"=texscreen("+p_inputs[0]+".xy);\n";
}break;
case NODE_SCALAR_OP: {
int op = p_node->param1;