mirror of
https://github.com/godotengine/godot.git
synced 2025-01-22 10:32:54 -05:00
Merge pull request #101796 from Chaosus/vs_fix_fresnel_preview_bug
Fix visual shader error when opening a Fresnel node preview
This commit is contained in:
commit
cabd792995
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…
Reference in a new issue