Merge pull request #93931 from /fix-compatibility-depth_prepass_alpha

This commit is contained in:
Rémi Verschelde 2024-07-20 16:07:30 +02:00
commit 6621d8e8cc
No known key found for this signature in database
GPG Key ID: C3336907360768E1

View File

@ -1420,7 +1420,7 @@ void RasterizerSceneGLES3::_fill_render_list(RenderListType p_render_list, const
#else #else
bool force_alpha = false; bool force_alpha = false;
#endif #endif
if (!force_alpha && (surf->flags & GeometryInstanceSurface::FLAG_PASS_OPAQUE)) { if (!force_alpha && (surf->flags & (GeometryInstanceSurface::FLAG_PASS_DEPTH | GeometryInstanceSurface::FLAG_PASS_OPAQUE))) {
rl->add_element(surf); rl->add_element(surf);
} }
if (force_alpha || (surf->flags & GeometryInstanceSurface::FLAG_PASS_ALPHA)) { if (force_alpha || (surf->flags & GeometryInstanceSurface::FLAG_PASS_ALPHA)) {