Fix visual shader error when opening a Fresnel node preview
This commit is contained in:
parent
7b1ed520bd
commit
8a7c9aa452
1 changed files with 1 additions and 1 deletions
|
|
@ -7261,7 +7261,7 @@ String VisualShaderNodeFresnel::generate_code(Shader::Mode p_mode, VisualShader:
|
|||
normal = p_input_vars[0];
|
||||
}
|
||||
if (p_input_vars[1].is_empty()) {
|
||||
if (p_mode == Shader::MODE_SPATIAL) {
|
||||
if (p_mode == Shader::MODE_SPATIAL && !p_for_preview) {
|
||||
view = "VIEW";
|
||||
} else {
|
||||
view = "vec3(0.0)";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue