summaryrefslogtreecommitdiff
path: root/scene/resources/visual_shader_nodes.cpp
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <remi@verschelde.fr>2021-06-09 11:15:41 +0200
committerGitHub <noreply@github.com>2021-06-09 11:15:41 +0200
commit27cf525713ab013260fc7444185ecf0e8948b0eb (patch)
tree7316e7d26d4e0e842facdad690f77ae22d046e83 /scene/resources/visual_shader_nodes.cpp
parent0cbb19a246b2a701dde848d86bff319b571efad7 (diff)
parentf632e36ae5fbc8499eb0bdac753bfd864759cbbb (diff)
Merge pull request #42248 from Chaosus/vs_particles_shader
Continuation of work on visual particles system
Diffstat (limited to 'scene/resources/visual_shader_nodes.cpp')
-rw-r--r--scene/resources/visual_shader_nodes.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/scene/resources/visual_shader_nodes.cpp b/scene/resources/visual_shader_nodes.cpp
index 5bcc6dda97..d3b094de31 100644
--- a/scene/resources/visual_shader_nodes.cpp
+++ b/scene/resources/visual_shader_nodes.cpp
@@ -860,7 +860,7 @@ String VisualShaderNodeCurveTexture::generate_code(Shader::Mode p_mode, VisualSh
}
String id = make_unique_id(p_type, p_id, "curve");
String code;
- code += "\t" + p_output_vars[0] + " = texture(" + id + ", vec2(" + p_input_vars[0] + ", 0.0)).r;\n";
+ code += "\t" + p_output_vars[0] + " = texture(" + id + ", vec2(" + p_input_vars[0] + ")).r;\n";
return code;
}