godotengine / godotengine/godot

Label's shadow outline overlaps when transparent

Open
#92,169 2 comments 0 reactions 0 assignees View on GitHub
discussion documentation topic:gui
Dominant language
C++
Stars
117k
Forks
26.8k
PR merge metrics
PR metrics pending

Description

### Tested versions

Reproducible in 4.2.stable

### System information

v4.2.stable

### Issue description

![Capture](https://github.com/godotengine/godot/assets/157412753/4156044a-7186-4086-b762-bc2d00c9aba9)
The Label has a `font_shadow_color` set to a color with some transparency, and a `shadow_outline_size` set. The expected behavior is that the entire shadow, including the outline, would have the color set in font_shadow_color. However, you can see that the shadow outline visibly has a different alpha value than the shadow itself.

### Steps to reproduce

Create a Label node. Set `font_shadow_color` to any color with alpha <1. Set `shadow_outline_size` to some value >0.

### Minimal reproduction project (MRP)

N/A

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the issue with a Label using a translucent font_shadow_color and a shadow_outline_size greater than zero. Trace the Label font-shadow rendering entry point to compare the outline and shadow alpha handling. Done means the entire shadow, including its outline, uses the configured font_shadow_color alpha.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp, godot
Domain
computer-graphics
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.