diff options
author | RĂ©mi Verschelde <remi@verschelde.fr> | 2021-10-28 16:05:55 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-10-28 16:05:55 +0200 |
commit | e2deec67b9b3258f1c4fc7ee8c9a375676a0571a (patch) | |
tree | 0acf54e7ea1b7b3defb52032db7ca1eb01935bfb /scene/resources | |
parent | 6b090e325a49ab9a890700925873f33232d06b2b (diff) | |
parent | c571e4a7f4a5cc34fa9b7efeff37ee69fcf6249d (diff) |
Merge pull request #54222 from JFonS/instance-fade
Diffstat (limited to 'scene/resources')
-rw-r--r-- | scene/resources/material.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scene/resources/material.cpp b/scene/resources/material.cpp index 267180973f..e01be7cc84 100644 --- a/scene/resources/material.cpp +++ b/scene/resources/material.cpp @@ -1086,7 +1086,7 @@ void BaseMaterial3D::_update_shader() { code += " ALPHA = 1.0;\n"; } else if (transparency != TRANSPARENCY_DISABLED || flags[FLAG_USE_SHADOW_TO_OPACITY] || (distance_fade == DISTANCE_FADE_PIXEL_ALPHA) || proximity_fade_enabled) { - code += " ALPHA = albedo.a * albedo_tex.a;\n"; + code += " ALPHA *= albedo.a * albedo_tex.a;\n"; } if (transparency == TRANSPARENCY_ALPHA_HASH) { code += " ALPHA_HASH_SCALE = alpha_hash_scale;\n"; |