Merge pull request #31009 from Chaosus/vs_fix_outer_product
Fix outerProduct function in visual shaders
This commit is contained in:
commit
a967ece4c7
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 {
|
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() {
|
VisualShaderNodeOuterProduct::VisualShaderNodeOuterProduct() {
|
||||||
|
|
Loading…
Reference in a new issue