Fix outerProduct function in visual shaders
This commit is contained in:
parent
507e41e698
commit
c34d75b678
1 changed files with 1 additions and 1 deletions
|
@ -2106,7 +2106,7 @@ String VisualShaderNodeOuterProduct::get_output_port_name(int p_port) const {
|
|||
}
|
||||
|
||||
String VisualShaderNodeOuterProduct::generate_code(Shader::Mode p_mode, VisualShader::Type p_type, int p_id, const String *p_input_vars, const String *p_output_vars, bool p_for_preview) const {
|
||||
return "\t" + p_output_vars[0] + " = outerProduct( " + p_input_vars[0] + ", " + p_input_vars[1] + " );\n";
|
||||
return "\t" + p_output_vars[0] + " = outerProduct( vec4(" + p_input_vars[0] + ", 0.0), vec4(" + p_input_vars[1] + ", 0.0) );\n";
|
||||
}
|
||||
|
||||
VisualShaderNodeOuterProduct::VisualShaderNodeOuterProduct() {
|
||||
|
|
Loading…
Reference in a new issue