Godot: Wierd issue with stylebox

Created on 14 Dec 2019  Â·  2Comments  Â·  Source: godotengine/godot

Godot version:
At first i though it was me messing with the source code of stylebox (#34320) but then i tried with official commit 3a9284b56 and the issue seems to persist.
OS/device including version:
Linux mint (first day! After windows crashing 10 times in 2 days.)

Issue description:
So if you set Corner Detail to a high enough value (i set it to 100, there will also be a project attached) AND have borders enabled AND have Shadow enabled AND have anti aliasing enabled, the results are... well, with GLES2 i get the following:
image
While if i disable the shadow OR the border OR anti aliasing, it returns to normal:
image
GLES3 seems to be more intuitive and gives me a clue:
image
With GLES3 the panel is never drawn.
I did make an attempt (for the first time) to try to debug this with Qt-creator but with no veil.

Steps to reproduce:
So to reproduce this you need to: Set the Corner Detail to a high value AND have Shadow enalbed AND have anti aliasing enabled AND have borders enabled (or download the attached project!).
Minimal reproduction project:
InnerShadowTest.zip

bug gui

Most helpful comment

Linux mint (first day! After windows crashing 10 times in 2 days.)

Welcome to GNU/Linux, my friend! :smile:

All 2 comments

Try increasing Rendering > Limits > Canvas Polygon Buffer Size Kb in the Project Settings. Note that doing so may slow down rendering.

That said, we should probably limit the corner detail to a lower value…
We can also optimize drawing by never using a corner detail that's higher than the corner radius (doing so is overkill).

Linux mint (first day! After windows crashing 10 times in 2 days.)

Welcome to GNU/Linux, my friend! :smile:

Was this page helpful?
0 / 5 - 0 ratings

Related issues

RebelliousX picture RebelliousX  Â·  3Comments

SleepProgger picture SleepProgger  Â·  3Comments

n-pigeon picture n-pigeon  Â·  3Comments

timoschwarzer picture timoschwarzer  Â·  3Comments

gonzo191 picture gonzo191  Â·  3Comments