Merge pull request #42553 from Chaosus/vs_fix_typo

Fix typo in VisualShaderNodeSample3D::generate_code
This commit is contained in:
Yuri Roubinsky 2020-10-04 10:53:48 +03:00 committed by GitHub
commit 2374281f36
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -853,7 +853,7 @@ String VisualShaderNodeSample3D::generate_code(Shader::Mode p_mode, VisualShader
if (p_input_vars[1] == String()) {
code += "\t\tvec4 " + id + "_tex_read = texture(" + id + ", " + default_uv + ");\n";
} else {
code += "\t\tvec4 " + id + "_tex_read = textureLod(" + id + ", " + default_uv = ", " + p_input_vars[1] + ");\n";
code += "\t\tvec4 " + id + "_tex_read = textureLod(" + id + ", " + default_uv + ", " + p_input_vars[1] + ");\n";
}
} else if (p_input_vars[1] == String()) {
//no lod