You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-07 12:30:27 +00:00
Style: Cleanup single-line blocks, semicolons, dead code
Remove currently unused implementation of TextureBasisU, could be re-added later on if needed and ported.
This commit is contained in:
@@ -1318,7 +1318,7 @@ String VisualShaderNodeParticleOutput::generate_code(Shader::Mode p_mode, Visual
|
||||
code += tab + "TRANSFORM = " + p_input_vars[5] + ";\n";
|
||||
}
|
||||
} else {
|
||||
if (!p_input_vars[0].is_empty()) { // active (begin)
|
||||
if (!p_input_vars[0].is_empty()) { // Active (begin).
|
||||
code += tab + "ACTIVE = " + p_input_vars[0] + ";\n";
|
||||
code += tab + "if(ACTIVE) {\n";
|
||||
tab += " ";
|
||||
@@ -1381,7 +1381,7 @@ String VisualShaderNodeParticleOutput::generate_code(Shader::Mode p_mode, Visual
|
||||
code += tab + "TRANSFORM " + op + " mat4(vec4(" + p_input_vars[scale] + ", 0, 0, 0), vec4(0, " + p_input_vars[scale] + ", 0, 0), vec4(0, 0, " + p_input_vars[scale] + ", 0), vec4(0, 0, 0, 1));\n";
|
||||
}
|
||||
}
|
||||
if (!p_input_vars[0].is_empty()) { // active (end)
|
||||
if (!p_input_vars[0].is_empty()) { // Active (end).
|
||||
code += " }\n";
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user