diff options
| author | MarianoGNU | 2015-10-17 15:27:36 -0300 |
|---|---|---|
| committer | MarianoGNU | 2015-10-17 15:27:36 -0300 |
| commit | 25324aa5061b07df6da877e94c8c23fbe7f34f6e (patch) | |
| tree | 0da3687c3138c4fe6b598bec25ed894880a04b65 /scene/resources/shader_graph.cpp | |
| parent | a5ebb525000d8301f73377426a2c1924d70aaf86 (diff) | |
| download | godot-25324aa5061b07df6da877e94c8c23fbe7f34f6e.tar.gz godot-25324aa5061b07df6da877e94c8c23fbe7f34f6e.tar.zst godot-25324aa5061b07df6da877e94c8c23fbe7f34f6e.zip | |
Diffstat (limited to 'scene/resources/shader_graph.cpp')
| -rw-r--r-- | scene/resources/shader_graph.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/scene/resources/shader_graph.cpp b/scene/resources/shader_graph.cpp index 4604c42de..49a1bdccb 100644 --- a/scene/resources/shader_graph.cpp +++ b/scene/resources/shader_graph.cpp @@ -2196,7 +2196,6 @@ void ShaderGraph::_add_node_code(ShaderType p_type,Node *p_node,const Vector<Str case RGB_OP_DIFFERENCE: { code += OUTNAME(p_node->id,0)+"=abs("+p_inputs[0]+"-"+p_inputs[1]+");\n"; - print_line(OUTNAME(p_node->id,0)+"=abs("+p_inputs[0]+"-"+p_inputs[1]+");\n"); } break; case RGB_OP_DARKEN: { @@ -2545,9 +2544,6 @@ void ShaderGraph::_add_node_code(ShaderType p_type,Node *p_node,const Vector<Str }break; case NODE_SCALAR_INPUT: { - DEF_SCALAR(0); - DEF_SCALAR(1); - DEF_SCALAR(2); String name = p_node->param1; float dv=p_node->param2; code +="uniform float "+name+"="+rtos(dv)+";\n"; @@ -2631,4 +2627,8 @@ void ShaderGraph::_add_node_code(ShaderType p_type,Node *p_node,const Vector<Str } } +#undef DEF_SCALAR +#undef DEF_COLOR +#undef DEF_MATRIX +#undef DEF_VEC } |
