From da0d4e4dea021c1fc10549cd5374d1baca2e4006 Mon Sep 17 00:00:00 2001 From: Juan Linietsky Date: Tue, 20 Jan 2015 22:31:32 -0300 Subject: Fixes to texscreen, fixes to white testcube --- scene/resources/shader_graph.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'scene') 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 Vectorid,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; -- cgit v1.2.3