You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-06 12:20:30 +00:00
Added missing '\n' in visual shader fresnel node code generation
This commit is contained in:
@@ -3764,7 +3764,7 @@ String VisualShaderNodeFresnel::generate_code(Shader::Mode p_mode, VisualShader:
|
|||||||
view = p_input_vars[1];
|
view = p_input_vars[1];
|
||||||
}
|
}
|
||||||
|
|
||||||
return "\t" + p_output_vars[0] + " = " + p_input_vars[2] + " ? (pow(clamp(dot(" + normal + ", " + view + "), 0.0, 1.0), " + p_input_vars[3] + ")) : (pow(1.0 - clamp(dot(" + normal + ", " + view + "), 0.0, 1.0), " + p_input_vars[3] + "));";
|
return "\t" + p_output_vars[0] + " = " + p_input_vars[2] + " ? (pow(clamp(dot(" + normal + ", " + view + "), 0.0, 1.0), " + p_input_vars[3] + ")) : (pow(1.0 - clamp(dot(" + normal + ", " + view + "), 0.0, 1.0), " + p_input_vars[3] + "));\n";
|
||||||
}
|
}
|
||||||
|
|
||||||
String VisualShaderNodeFresnel::get_input_port_default_hint(int p_port) const {
|
String VisualShaderNodeFresnel::get_input_port_default_hint(int p_port) const {
|
||||||
|
|||||||
Reference in New Issue
Block a user