godotengine / godotengine/godot

Environment: Background Mode: Canvas causes Popup windows to become severely transparent (including default "ToolTip") regardless of `background_canvas_max_layer` property

Open
#100,733 0 comments 0 reactions 0 assignees View on GitHub
bug topic:2d topic:rendering
Dominant language
C++
Stars
117k
Forks
26.8k
PR merge metrics
PR metrics pending

Description

### Tested versions

- Reproducible in Godot 4.3 (Renderer: Mobile)

### System information

Windows 11 - Godot Engine v4.3.stable.official.77dcf97d8 - https://godotengine.org Vulkan 1.3.278 - Forward Mobile - Using Device #0: NVIDIA - NVIDIA GeForce RTX 3050 Laptop GPU

### Issue description

When using World environment in a scene, and setting the background mode of an environment to `canvas`, every popup window (transparent = true) to become severely transparent (almost invisible) Even when the theme is custom set to be fully opaque have tried to change the CanvasLayer's `Layer` which is the parent of the GUI node to a higher value than the `background_canvas_max_layer` but it has no effect.

![Image](https://github.com/user-attachments/assets/f6c91df6-7d72-4cda-beda-ea8bcc039523)

EXPECTED OUTCOME (WorldEnvironment `Background Mode` set to: `Clear Color`):
![Image](https://github.com/user-attachments/assets/14a08f65-bd33-4500-9f4d-8c9c95525089)

If this is the intended behavior, please tell me how to turn the severe transparency off for the default tooltip since i am overriding it with my own using `_make_custom_tooltip()` (even though the issue still exists with the default ones). thank you.

### Steps to reproduce

1. Create a new projectin godot 4.3 (Mobile)
2. Make a 2D scene:
![Image](https://github.com/user-attachments/assets/f2d1eec2-98e2-4fb7-9837-528b61d1eaae)

3. Add a `WorldEnvironment` Node as a child.
4. Add a new environment and in the "Background" subgroup in the editor, Change the mode to `Canvas` and set `Canvas Max Layer` to 1:
![Image](https://github.com/user-attachments/assets/3b23829e-8708-4e2c-9a58-3cedc3355472)

5. Add a `CanvasLayer` as the Child of Root `Node2D`. Set the `Layer` to anything greater than 1 (5 in my case):
![Image](https://github.com/user-attachments/assets/3bddc584-7f83-496e-93ea-283a0b620e88)

7. Add a `PanelContainer` as the child of `CanvasLayer`. Set the `TooltipText` to any text in the editor:
![Image](https://github.com/user-attachments/assets/ad855a16-b0e1-40f2-95ff-33080232173b)

8. Save and Run the Scene and Hover your mouse cursor over the `PanelContainer`. The (More) Transparent Tooltip Text will be displayed:
![Image](https://github.com/user-attachments/assets/46a1a1df-1981-42b3-b158-71e1a1077356)

9. Now Change the Background Mode of the `WorldEnvironment` to anything other than "Canvas".
![Image](https://github.com/user-attachments/assets/f16c76f6-3c65-4763-81fa-93b944fdfdbc)

10. Save and Run the Scene. Now the Popup (Tooltip) is being displayed as Intended:
![Image](https://github.com/user-attachments/assets/e22b30b1-0f34-43df-bb8d-1d7268f526c0)

### Minimal reproduction project (MRP)

[mrp-bg_canvas.zip](https://github.com/user-attachments/files/18221440/mrp-bg_canvas.zip)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.