You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-16 14:00:40 +00:00
fix depth_prepass_alpha not work in compatibility mode
This commit is contained in:
@@ -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)) {
|
||||||
|
|||||||
Reference in New Issue
Block a user